-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toolbox run
command isn't terminated properly when terminal emulator is exited
#1157
Labels
1. Bug
Something isn't working
Comments
halfline
added a commit
to halfline/toolbox
that referenced
this issue
Dec 22, 2022
Right now "toolbox enter" creates a container on the fly, but then lets it linger after the foreground toolbox process is killed (for instance, from a terminal hangup). Not killing the underlying container has the negative side effect of stalling shutdown if a toolbox shell is running. This commit addresses that problem by detecting when the toolbox process is signaled, and then in response, kills off the entire cgroup associated with the underlying container. Closes containers#1157
halfline
added a commit
to halfline/toolbox
that referenced
this issue
Dec 22, 2022
Right now "toolbox enter" creates a container on the fly, but then lets it linger after the foreground toolbox process is killed (for instance, from a terminal hangup). Not killing the underlying container has the negative side effect of stalling shutdown if a toolbox shell is running. This commit addresses that problem by detecting when the toolbox process is signaled, and then in response, kills off the entire cgroup associated with the underlying container. Closes containers#1157 Signed-off-by: Ray Strode <[email protected]>
halfline
added a commit
to halfline/toolbox
that referenced
this issue
Dec 22, 2022
Right now "toolbox enter" creates a container on the fly, but then lets it linger after the foreground toolbox process is killed (for instance, from a terminal hangup). Not killing the underlying container has the negative side effect of stalling shutdown if a toolbox shell is running. This commit addresses that problem by detecting when the toolbox process is signaled, and then in response, kills off the entire cgroup associated with the underlying container. Closes containers#1157 Signed-off-by: Ray Strode <[email protected]>
Duplicate of #1204 |
Thanks for playing with Toolbx and contributing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
toolbox run
command isn't terminated properly when terminal emulator is exited, causing processes to linger around without user's awareness.Steps how to reproduce the behaviour
sleep
sleep
runs out of time, try to close the terminal emulatorInsist closing it by pressing
Close Terminal
.Expected behaviour
sleep
process is terminated.Actual behaviour
sleep
keeps lingering around.Output of
toolbox --version
(v0.0.90+)toolbox version 0.0.99.3
Toolbox package info (
rpm -q toolbox
)toolbox-0.0.99.3-6.fc36.x86_64
Output of
podman version
Podman package info (
rpm -q podman
)podman-4.2.1-2.fc36.x86_64
Info about your OS
Fedora Silverblue 36
Additional context
Source: #1204
The text was updated successfully, but these errors were encountered: