mirror of
https://github.com/containers/podman.git
synced 2025-06-22 09:58:10 +08:00
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 <dwalsh@redhat.com> Closes: #1086 Approved by: baude
This commit is contained in:

committed by
Atomic Bot

parent
6f1dd44b29
commit
299f471d1f
@ -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))
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
Reference in New Issue
Block a user