From 299f471d1f897f173ccbbaa883b420e4c49201c9 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Thu, 12 Jul 2018 17:09:57 -0400 Subject: If proxy fails then then signal should be sent to the main process This way ^c will actually kill the host process if the container is not actually running. Signed-off-by: Daniel J Walsh Closes: #1086 Approved by: baude --- cmd/podman/sigproxy.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd') diff --git a/cmd/podman/sigproxy.go b/cmd/podman/sigproxy.go index fd1415dc6..388e23439 100644 --- a/cmd/podman/sigproxy.go +++ b/cmd/podman/sigproxy.go @@ -25,6 +25,8 @@ func ProxySignals(ctr *libpod.Container) { 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)) } } }() -- cgit v1.2.3-54-g00ecf