diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-02-12 11:10:55 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-02-14 15:04:14 +0100 |
commit | 85b7374491e842c44bec3ce5ec800794cae10295 (patch) | |
tree | c45fa8df8796b3741094f796f56b66e9d4388e60 /pkg/adapter/sigproxy_linux.go | |
parent | 156ce5cd7d6f0f1514d263a74ffe3dd42f7c7caf (diff) | |
download | podman-85b7374491e842c44bec3ce5ec800794cae10295.tar.gz podman-85b7374491e842c44bec3ce5ec800794cae10295.tar.bz2 podman-85b7374491e842c44bec3ce5ec800794cae10295.zip |
add pkg/signal
Add pkg/signal to deal with parts of signal processing and translating
signals from string to numeric representations. The code has been
copied from docker/docker (and attributed with the copyright) but been
reduced to only what libpod needs (on Linux).
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/adapter/sigproxy_linux.go')
-rw-r--r-- | pkg/adapter/sigproxy_linux.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/adapter/sigproxy_linux.go b/pkg/adapter/sigproxy_linux.go index 35745a6aa..8295e4250 100644 --- a/pkg/adapter/sigproxy_linux.go +++ b/pkg/adapter/sigproxy_linux.go @@ -5,7 +5,7 @@ import ( "syscall" "github.com/containers/libpod/libpod" - "github.com/docker/docker/pkg/signal" + "github.com/containers/libpod/pkg/signal" "github.com/sirupsen/logrus" ) @@ -20,7 +20,7 @@ func ProxySignals(ctr *libpod.Container) { for s := range sigBuffer { // Ignore SIGCHLD and SIGPIPE - these are mostly likely // intended for the podman command itself. - if s == signal.SIGCHLD || s == signal.SIGPIPE { + if s == syscall.SIGCHLD || s == syscall.SIGPIPE { continue } |