mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix "application exiting with {Code:0 Signo:27}" during boot.
2aa9514a06 skips SIGURG, but later code expects
the sigchans array contains consecutive signal numbers.
PiperOrigin-RevId: 300793450
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user