diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-14 20:13:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 20:13:28 +0100 |
commit | 7e713ff336b8dd48b6fd75b16c92e6a35579355d (patch) | |
tree | 84a9d3e1a7520aa34e8ecb1b49adf3aac5636694 /pkg/signal/signal_unsupported.go | |
parent | 0668483cf04bc7089ed176fb0b6700aebf80aaf9 (diff) | |
parent | 85b7374491e842c44bec3ce5ec800794cae10295 (diff) | |
download | podman-7e713ff336b8dd48b6fd75b16c92e6a35579355d.tar.gz podman-7e713ff336b8dd48b6fd75b16c92e6a35579355d.tar.bz2 podman-7e713ff336b8dd48b6fd75b16c92e6a35579355d.zip |
Merge pull request #5209 from vrothberg/un-docker
Undocker part 1)
Diffstat (limited to 'pkg/signal/signal_unsupported.go')
-rw-r--r-- | pkg/signal/signal_unsupported.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkg/signal/signal_unsupported.go b/pkg/signal/signal_unsupported.go new file mode 100644 index 000000000..0a92a5b3a --- /dev/null +++ b/pkg/signal/signal_unsupported.go @@ -0,0 +1,28 @@ +// +build !linux + +// Signal handling for Linux only. +package signal + +import ( + "fmt" + "os" + "syscall" +) + +const SIGWINCH = syscall.Signal(0xff) + +// ParseSignal translates a string to a valid syscall signal. +// It returns an error if the signal map doesn't include the given signal. +func ParseSignal(rawSignal string) (syscall.Signal, error) { + return 0, fmt.Errorf("unsupported on non-linux platforms") +} + +// 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") +} |