• Shenghou Ma's avatar
    runtime: fix build after CL 9164 on Linux · edc53e1f
    Shenghou Ma authored
    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/9246Reviewed-by: 's avatarDave Cheney <dave@cheney.net>
    edc53e1f
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...