1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/signal
Sebastiaan van Stijn b7ebf32ba3
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>
2021-05-19 19:42:18 +02:00
..
testfiles Add test coverage to signal/trap.go 2017-08-09 15:13:38 +05:00
README.md
signal.go pkg/signal.CatchAll: ignore SIGURG on Linux 2021-05-19 19:42:18 +02:00
signal_darwin.go pkg/signal.CatchAll: ignore SIGURG on Linux 2021-05-19 19:42:18 +02:00
signal_freebsd.go pkg/signal.CatchAll: ignore SIGURG on Linux 2021-05-19 19:42:18 +02:00
signal_linux.go pkg/signal.CatchAll: ignore SIGURG on Linux 2021-05-19 19:42:18 +02:00
signal_linux_mipsx.go pkg/signal.CatchAll: ignore SIGURG on Linux 2021-05-19 19:42:18 +02:00
signal_linux_test.go pkg/signal.CatchAll: ignore SIGURG on Linux 2021-05-19 19:42:18 +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-19 19:42:18 +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