Replies: 2 comments
-
podman not terminating long running processes as expected reminds me a bit of #14531 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Converted to an issue: https://github.com/containers/podman/issues/20003 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been trying to investigate why processes run inside toolbox and distrobox never terminate when I close the terminal window. Normally, when the terminal window is closed, the kernel sends a SIGHUP signal to the foreground process, signal which is completely ignored by
podman exec
used by both toolbox and distrobox, so they never have a chance to terminate and keep running, even if their pty is no longer "visible".I created this discussion because I do not know whether this is intended behaviour, whether podman exec needs a new option to pass-through SIGHUPs to the controlling process inside the container, or just a bug altogether.
How to reproduce
podman run -it --rm alpine
sleep infinity
sleep infinity
is still runningHow it works normally
sleep infinity
sleep infinity
has been terminated, because the SIGHUP was able to reach it. This is the correct POSIX behaviourSo question is: why is
podman exec
ignoring SIGHUPs? Is this a bug, or shall it need a new option to make it work like any other shell?Beta Was this translation helpful? Give feedback.
All reactions