Kill exec process with SIGTERM instead of SIGKILL
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- go
- Domain
- cli, operating-systems
Research direction
Start at runc.go line 201, where runc.Exec uses exec.CommandContext, and compare the reported behavior with docker-runc and runc. The work is done when cancellation stops the runc command with SIGTERM and the exec process inside the container is also stopped.
Written by the indexing model from the issue text.
Description
In runc.Exec, here the exec command is created with exec.CommandContext, which will kill the runc command with os.Process.Kill when the context is done. And when runc is killed by SIGKILL, the exec process inside the container is not stopped. I think we should send SIGTERM manually to stop the runc command when we're doing exec.
I only tested this with docker-runc. Can anyone confirm whether it is the same with runc?
- Dominant language
- Go
- Stars
- 177
- Forks
- 84
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from containerd/go-runc
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
containerd/go-runc#110 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
containerd/go-runc#94 · 3 comments ·
-
Add more statsOpen
Difficulty 4/5 3-5 days Newbie friendliness 30/100
containerd/go-runc#85 ·
-
Enable passing the --auto-dedup flagPossibly taken @austinvazquez claimed this 1131 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
containerd/go-runc#73 · 1 comment ·
-
Support for msec time interval in EventsPossibly taken @austinvazquez claimed this 1131 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
containerd/go-runc#53 ·
All issues in containerd/go-runc
Similar issues
-
ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
jordansmall/spindrift#7895 ·
Maintainers usually reply within 1 day
-
documentation priority: medium skill: intermediate status: ready for dev
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
hyperledger-labs/fabric-smart-client#2830 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
P3 tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day