diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-04-08 10:16:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-08 10:16:34 -0700 |
commit | 8eb03d3e5388d02dbbe5382b5fdb346a45535f84 (patch) | |
tree | 4bfe883e8e4f51af43b5c14c4e09fdaec889bc8d /cmd/podman/sigproxy.go | |
parent | 1671ee557a6d354680be475991ca85a82f312a99 (diff) | |
parent | ba65301c955454e47c3893ca548f18a845a4c4a9 (diff) | |
download | podman-8eb03d3e5388d02dbbe5382b5fdb346a45535f84.tar.gz podman-8eb03d3e5388d02dbbe5382b5fdb346a45535f84.tar.bz2 podman-8eb03d3e5388d02dbbe5382b5fdb346a45535f84.zip |
Merge pull request #2746 from baude/remotecreate
podman-remote create|run
Diffstat (limited to 'cmd/podman/sigproxy.go')
-rw-r--r-- | cmd/podman/sigproxy.go | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/cmd/podman/sigproxy.go b/cmd/podman/sigproxy.go deleted file mode 100644 index 16861bad0..000000000 --- a/cmd/podman/sigproxy.go +++ /dev/null @@ -1,35 +0,0 @@ -package main - -import ( - "os" - "syscall" - - "github.com/containers/libpod/libpod" - "github.com/docker/docker/pkg/signal" - "github.com/sirupsen/logrus" -) - -func ProxySignals(ctr *libpod.Container) { - sigBuffer := make(chan os.Signal, 128) - signal.CatchAll(sigBuffer) - - logrus.Debugf("Enabling signal proxying") - - go func() { - 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 { - continue - } - - if err := ctr.Kill(uint(s.(syscall.Signal))); err != nil { - logrus.Errorf("Error forwarding signal %d to container %s: %v", s, ctr.ID(), err) - signal.StopCatch(sigBuffer) - syscall.Kill(syscall.Getpid(), s.(syscall.Signal)) - } - } - }() - - return -} |