• Ian Lance Taylor's avatar
    runtime: unblock special glibc signals on each thread · ffd7d317
    Ian Lance Taylor authored
    Glibc uses some special signals for special thread operations.  These
    signals will be used in programs that use cgo and invoke certain glibc
    functions, such as setgid.  In order for this to work, these signals
    need to not be masked by any thread.  Before this change, they were
    being masked by programs that used os/signal.Notify, because it
    carefully masks all non-thread-specific signals in all threads so that a
    dedicated thread will collect and report those signals (see ensureSigM
    in signal1_unix.go).
    
    This change adds the two glibc special signals to the set of signals
    that are unmasked in each thread.
    
    Fixes #12498.
    
    Change-Id: I797d71a099a2169c186f024185d44a2e1972d4ad
    Reviewed-on: https://go-review.googlesource.com/14297Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
    ffd7d317
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...
testshared Loading commit data...
testsigfwd Loading commit data...
testso Loading commit data...
testsovar Loading commit data...
testtls Loading commit data...