aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/signal1_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/signal1_unix.go')
-rw-r--r--src/runtime/signal1_unix.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/runtime/signal1_unix.go b/src/runtime/signal1_unix.go
index 253ee9f465..184fd125fb 100644
--- a/src/runtime/signal1_unix.go
+++ b/src/runtime/signal1_unix.go
@@ -78,6 +78,18 @@ func sigdisable(sig uint32) {
}
}
+func sigignore(sig uint32) {
+ if sig >= uint32(len(sigtable)) {
+ return
+ }
+
+ t := &sigtable[sig]
+ if t.flags&_SigNotify != 0 {
+ t.flags &^= _SigHandling
+ setsig(int32(sig), _SIG_IGN, true)
+ }
+}
+
func resetcpuprofiler(hz int32) {
var it itimerval
if hz == 0 {