]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgo/go/runtime/signal_unix.go
runtime: install SIGURG handler on C created threads
[thirdparty/gcc.git] / libgo / go / runtime / signal_unix.go
index 2f89c7cbf43eda41ec937b124a84060ca6b15f52..12e4315d7e1725cfcc73dc7ca62003dd9427991f 100644 (file)
@@ -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
        }