]> Cypherpunks repositories - gostls13.git/commit
runtime: fix build after CL 9164 on Linux
authorShenghou Ma <minux@golang.org>
Wed, 22 Apr 2015 22:03:18 +0000 (18:03 -0400)
committerMinux Ma <minux@golang.org>
Wed, 22 Apr 2015 23:21:25 +0000 (23:21 +0000)
commitedc53e1f144fe5d1be8c787992ea6e9d9067ebf6
tree273fa8dd4097a8a3f4dd3ac7d2b3076d91880ca2
parent43618e62ca387faf2272308a46fed9378fa36a87
runtime: fix build after CL 9164 on Linux

There is an assumption that the function executed in child thread
created by runtime.close should not return. And different systems
enforce that differently: some exit that thread, some exit the
whole process.

The test TestNewOSProc0 introduced in CL 9161 breaks that assumption,
so we need to adjust the code to only exit the thread should the
called function return.

Change-Id: Id631cb2f02ec6fbd765508377a79f3f96c6a2ed6
Reviewed-on: https://go-review.googlesource.com/9246
Reviewed-by: Dave Cheney <dave@cheney.net>
src/runtime/sys_linux_amd64.s
src/runtime/sys_linux_arm.s
src/runtime/sys_linux_arm64.s
src/runtime/sys_linux_ppc64x.s