diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-03-13 18:32:37 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-03-13 18:32:37 +0000 |
commit | eb4ab4f2f9fe701281d06058ff87690b1b673c25 (patch) | |
tree | 0259320cb6c2a45b6b55d0089e4e7180743a9315 | |
parent | f6f99d23a5c3f625ab9100fd6e8d82d1005b7792 (diff) | |
parent | f458a325e9b6aecf2ee198de19063505c48a14d7 (diff) |
Merge release-20200219.0-163-gf458a32 (automated)
-rw-r--r-- | pkg/sentry/sighandling/sighandling.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/sentry/sighandling/sighandling.go b/pkg/sentry/sighandling/sighandling.go index 959ef7217..83195d5a1 100644 --- a/pkg/sentry/sighandling/sighandling.go +++ b/pkg/sentry/sighandling/sighandling.go @@ -83,12 +83,13 @@ func StartSignalForwarding(handler func(linux.Signal)) func() { // for their handling. var sigchans []chan os.Signal for sig := 1; sig <= numSignals+1; sig++ { + sigchan := make(chan os.Signal, 1) + sigchans = append(sigchans, sigchan) + // SIGURG is used by Go's runtime scheduler. if sig == int(linux.SIGURG) { continue } - sigchan := make(chan os.Signal, 1) - sigchans = append(sigchans, sigchan) signal.Notify(sigchan, syscall.Signal(sig)) } // Start up our listener. |