moby/pkg/signal
Sebastiaan van Stijn 41cf01fa93
pkg/signal.CatchAll: ignore SIGURG on Linux
Do not handle SIGURG on Linux, as in go1.14+, the go runtime issues
SIGURG as an interrupt to support preemptable system calls on Linux.

This issue was caught in TestCatchAll, which could fail when updating to Go 1.14 or above;

    === Failed
    === FAIL: pkg/signal TestCatchAll (0.01s)
        signal_linux_test.go:32: assertion failed: urgent I/O condition (string) != continued (string)
        signal_linux_test.go:32: assertion failed: continued (string) != hangup (string)
        signal_linux_test.go:32: assertion failed: hangup (string) != child exited (string)
        signal_linux_test.go:32: assertion failed: child exited (string) != illegal instruction (string)
        signal_linux_test.go:32: assertion failed: illegal instruction (string) != floating point exception (string)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit b7ebf32ba3)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-05-20 10:11:39 +02:00
..
testfiles Add test coverage to signal/trap.go 2017-08-09 15:13:38 +05:00
README.md #11585: README for pkg/signal. Signed-off-by: Vladimir Roudakov <v_roudakov@yahoo.com> 2015-03-26 21:18:27 +10:00
signal.go pkg/signal.CatchAll: ignore SIGURG on Linux 2021-05-20 10:11:39 +02:00
signal_darwin.go pkg/signal.CatchAll: ignore SIGURG on Linux 2021-05-20 10:11:39 +02:00
signal_freebsd.go pkg/signal.CatchAll: ignore SIGURG on Linux 2021-05-20 10:11:39 +02:00
signal_linux.go pkg/signal.CatchAll: ignore SIGURG on Linux 2021-05-20 10:11:39 +02:00
signal_linux_mipsx.go pkg/signal.CatchAll: ignore SIGURG on Linux 2021-05-20 10:11:39 +02:00
signal_linux_test.go pkg/signal.CatchAll: ignore SIGURG on Linux 2021-05-20 10:11:39 +02:00
signal_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
signal_unix.go Add canonical import comment 2018-02-05 16:51:57 -05:00
signal_unsupported.go Add canonical import comment 2018-02-05 16:51:57 -05:00
signal_windows.go pkg/signal.CatchAll: ignore SIGURG on Linux 2021-05-20 10:11:39 +02:00
trap.go pkg/signal: normalize comment formatting 2019-11-27 15:41:47 +01:00
trap_linux_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00

This package provides helper functions for dealing with signals across various operating systems