diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-01-24 05:31:14 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-01-24 05:31:14 +0000 |
commit | 52c9cfeb083c7fff0c5049c772285131175f7d0c (patch) | |
tree | eff81c4f04ac8c7656bdc0b4145de1069ee0b74c /libgo | |
parent | eea18a4eb06242af8883e9b6b15f981f9243f5c2 (diff) | |
download | gcc-52c9cfeb083c7fff0c5049c772285131175f7d0c.tar.gz |
runtime: install SIGURG handler on C created threads
Precise stack scan uses SIGURG to trigger a stack scan. We need
to have Go signal handler installed for SIGURG.
Reviewed-on: https://go-review.googlesource.com/c/159097
From-SVN: r268230
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/runtime/signal_unix.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/runtime/signal_unix.go b/libgo/go/runtime/signal_unix.go index 2f89c7cbf43..12e4315d7e1 100644 --- a/libgo/go/runtime/signal_unix.go +++ b/libgo/go/runtime/signal_unix.go @@ -142,8 +142,8 @@ func sigInstallGoHandler(sig uint32) bool { } // When built using c-archive or c-shared, only install signal - // handlers for synchronous signals and SIGPIPE. - if (isarchive || islibrary) && t.flags&_SigPanic == 0 && sig != _SIGPIPE { + // handlers for synchronous signals, SIGPIPE, and SIGURG. + if (isarchive || islibrary) && t.flags&_SigPanic == 0 && sig != _SIGPIPE && sig != _SIGURG { return false } |