diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-06-27 15:58:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 15:58:34 +0000 |
commit | 465c54829e46ca9724bd882756fba89bfaff965d (patch) | |
tree | 348c63a38955b9a517e073d9ee784737329d6ca7 /pkg/signal/signal_linux_mipsx.go | |
parent | 088665d2cfd488004f34dbd0804c3cd00bf94ca4 (diff) | |
parent | 66c62eb96816d7eb021da22d439838510d61f916 (diff) | |
download | podman-465c54829e46ca9724bd882756fba89bfaff965d.tar.gz podman-465c54829e46ca9724bd882756fba89bfaff965d.tar.bz2 podman-465c54829e46ca9724bd882756fba89bfaff965d.zip |
Merge pull request #14733 from dfr/unix-signal
Implement CatchAll and StopCatch in signal_unix.go
Diffstat (limited to 'pkg/signal/signal_linux_mipsx.go')
-rw-r--r-- | pkg/signal/signal_linux_mipsx.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/pkg/signal/signal_linux_mipsx.go b/pkg/signal/signal_linux_mipsx.go index 9021a10e7..cdf9ad4c5 100644 --- a/pkg/signal/signal_linux_mipsx.go +++ b/pkg/signal/signal_linux_mipsx.go @@ -10,8 +10,6 @@ package signal // NOTE: this package has originally been copied from github.com/docker/docker. import ( - "os" - "os/signal" "syscall" "golang.org/x/sys/unix" @@ -92,18 +90,3 @@ var SignalMap = map[string]syscall.Signal{ "RTMAX-1": sigrtmax - 1, "RTMAX": sigrtmax, } - -// CatchAll catches all signals and relays them to the specified channel. -func CatchAll(sigc chan os.Signal) { - handledSigs := make([]os.Signal, 0, len(SignalMap)) - for _, s := range SignalMap { - handledSigs = append(handledSigs, s) - } - signal.Notify(sigc, handledSigs...) -} - -// StopCatch stops catching the signals and closes the specified channel. -func StopCatch(sigc chan os.Signal) { - signal.Stop(sigc) - close(sigc) -} |