• 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
sys_linux_arm64.s 7.79 KB