summaryrefslogtreecommitdiff
path: root/pkg/signal/signal_unix.go
diff options
context:
space:
mode:
authorDoug Rabson <dfr@rabson.org>2022-05-08 12:52:34 +0100
committerDoug Rabson <dfr@rabson.org>2022-06-27 13:27:12 +0100
commit66c62eb96816d7eb021da22d439838510d61f916 (patch)
treec51d042d358f384addd2e89a2cfe3b4292cf10c7 /pkg/signal/signal_unix.go
parent3176b3fe011aa3323ba192e90efe516d0701e46e (diff)
downloadpodman-66c62eb96816d7eb021da22d439838510d61f916.tar.gz
podman-66c62eb96816d7eb021da22d439838510d61f916.tar.bz2
podman-66c62eb96816d7eb021da22d439838510d61f916.zip
Implement CatchAll and StopCatch in signal_common.go
This is part of a set of changes to port podman to the FreeBSD platform. The pkg/signal parts are needed to enable ABI mode on FreeBSD. No tests are needed here because it should be a functional no-op for linux. [NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson <dfr@rabson.org>
Diffstat (limited to 'pkg/signal/signal_unix.go')
-rw-r--r--pkg/signal/signal_unix.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/pkg/signal/signal_unix.go b/pkg/signal/signal_unix.go
index 0f43e21b7..7919e3670 100644
--- a/pkg/signal/signal_unix.go
+++ b/pkg/signal/signal_unix.go
@@ -5,7 +5,6 @@
package signal
import (
- "os"
"syscall"
)
@@ -88,13 +87,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) {
- panic("Unsupported on non-linux platforms")
-}
-
-// StopCatch stops catching the signals and closes the specified channel.
-func StopCatch(sigc chan os.Signal) {
- panic("Unsupported on non-linux platforms")
-}