core/cmd/init: ignore SIGURG
Test Plan: Error is gone.
Bug: T743
X-Origin-Diff: phab/D526
GitOrigin-RevId: ad080bd3299c2c32208ba7553b750b16282c5656
diff --git a/core/cmd/init/main.go b/core/cmd/init/main.go
index 42770a9..4fc949d 100644
--- a/core/cmd/init/main.go
+++ b/core/cmd/init/main.go
@@ -124,6 +124,12 @@
break
}
}
+ case unix.SIGURG:
+ // Go 1.14 introduced asynchronous preemption, which uses SIGURG.
+ // In order not to break backwards compatibility in the unlikely case
+ // of an application actually using SIGURG on its own, they're not filtering them.
+ // (https://github.com/golang/go/issues/37942)
+ logger.Debug("Ignoring SIGURG")
// TODO(lorenz): We can probably get more than just SIGCHLD as init, but I can't think
// of any others right now, just log them in case we hit any of them.
default: