Skip to content
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: exec not signaling child processes upon receiving termination signal #22495

Closed
agorgl opened this issue Apr 24, 2024 · 1 comment
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@agorgl
Copy link

agorgl commented Apr 24, 2024

Issue Description

Processes inside a container spawned by podman exec invocations are not killed when the podman exec invocation in the host that spawned them receives a kill signal itself

Steps to reproduce the issue

Steps to reproduce the issue

  1. Run a simple container using podman run --rm -it --name alpine alpine
  2. Watch the processes in the container using watch -n 1 ps aux
  3. Exec a command from the host using podman exec -it alpine /bin/sh -c 'sleep 1000'
  4. Find the podman exec pid in the host using ps aux | grep podman | grep sleep and kill it using kill <pid>

Describe the results you received

Watch as the podman exec invocation gets killed in the host, but the process inside the container is not signaled and keeps running.

Describe the results you expected

For the process execed by podman exec to be signaled to terminate upon killing the podman exec process itself

podman info output

❯ podman version                                                                                                                                                                 1m 13s
Client:       Podman Engine
Version:      5.0.2
API Version:  5.0.2
Go Version:   go1.22.2
Git Commit:   3304dd95b8978a8346b96b7d43134990609b3b29-dirty
Built:        Thu Apr 18 14:13:19 2024
OS/Arch:      linux/amd64

Podman in a container

No

Privileged Or Rootless

Rootless

Upstream Latest Release

Yes

Additional environment details

No response

Additional information

No response

@agorgl agorgl added the kind/bug Categorizes issue or PR as related to a bug. label Apr 24, 2024
@Luap99
Copy link
Member

Luap99 commented Apr 25, 2024

Duplicate of #19486

@Luap99 Luap99 marked this as a duplicate of #19486 Apr 25, 2024
@Luap99 Luap99 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2024
@stale-locking-app stale-locking-app bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Jul 25, 2024
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators Jul 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

2 participants