-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman pull does not suspend properly (ctrl-z) #2775
Comments
Happens exclusively as rootless. Probably something to do with the rootless user namespace. @giuseppe any ideas here? |
This probably happens as we have two processes and we don't propagate signals. |
We can't really catch and forward SIGSTOP anyways - uncatchable by design. I don't really know what we can do here, then. |
Once we land the rootless refactoring, I'd like to redesign the re-exec in a way of not having two processes |
we were previously proxying all the signals, but doing that for SIGTSTP prevented the main process to be stopped by the tty. Closes: containers#2775 Signed-off-by: Giuseppe Scrivano <[email protected]>
can you try if #2915 solves the problem for you? |
Yes. That appears to do the trick. Thanks! |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Attempting to suspend
podman pull
, using ctrl-z in a shell, does not suspend all processes and leaves the command in a "stuck" state.Steps to reproduce the issue:
podman pull -q foo/bar:baz
CTRL-Z
Shell is non-respnsive. CTRL-C, etc do nothing
Describe the results you received:
podman command line does not suspend
Describe the results you expected:
podman process is suspended like a typical shell command, allowing subsequent job-control commands such as "bg"
Additional information you deem important (e.g. issue happens only occasionally):
This can be worked around by finding the pid of the podman child process which is suspended and running
kill -CONT <pid>
on it. The child process will then either continue or die (depending on what else you did in the original shell) and the parent process will exit.This seems to be some sort of signal handling issue.
This probably effects other podman subcommands but I only checked "pull" as it is frequently where I start a pull, realize its really pulling from the internet and decide I'd rather background it with "bg", but this workflow fails.
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
Developer laptop, fedora 29, bash shell
The text was updated successfully, but these errors were encountered: