• Ian Lance Taylor's avatar
    runtime: adjust gsignal stack to current signal stack · f7e51c13
    Ian Lance Taylor authored
    If non-Go code calls sigaltstack before a signal is received, use
    sigaltstack to determine the current signal stack and set the gsignal
    stack to use it.  This makes the Go runtime more robust in the face of
    non-Go code.  We still can't handle a disabled signal stack or a signal
    triggered with SA_ONSTACK clear, but we now give clear errors for those
    cases.
    
    Fixes #7227.
    Update #9896.
    
    Change-Id: Icb1607e01fd6461019b6d77d940e59b3aed4d258
    Reviewed-on: https://go-review.googlesource.com/18102
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarMikio Hara <mikioh.mikioh@gmail.com>
    f7e51c13
Name
Last commit
Last update
..
errors Loading commit data...
gmp Loading commit data...
life Loading commit data...
nocgo Loading commit data...
stdio Loading commit data...
test Loading commit data...
testasan Loading commit data...
testcarchive Loading commit data...
testcshared Loading commit data...
testgodefs Loading commit data...
testsanitizers Loading commit data...
testshared Loading commit data...
testsigfwd Loading commit data...
testso Loading commit data...
testsovar Loading commit data...
testtls Loading commit data...