Fix/594 signal handling#612
Conversation
✅ Deploy Preview for urunc canceled.
|
|
@sksingh2005, Could you review this branch and add some tests if possible? After that, we can mark it as ready for review. Appreciate it! |
|
@jiwahn sure I will look into it |
|
@jiwahn Overall it looks nice just some follow ups:
|
|
Thanks, handling non-positive values sounds good to me. Could you add the numeric signal guard as a GitHub suggested change on the relevant line? I can apply it directly from the review. |
@jiwahn its mentioned i guess ? |
|
Yes it is |
a559f71 to
24092cc
Compare
|
Hey @jiwahn @sksingh2005 i was just going through this PR and I tried to send signal "0" to check if container is alive: the Expected was Docker reports container is alive or container not found but what happend is urunc silently does unix.Kill(pid, 0), returns success, Docker thinks the kill succeeded and marks the container as killed,but the container is still running.Happy to help if needed. |
|
@abhaygoudannavar I was not able to reproduce the behavior on this branch. |
|
@cmainas, changes made! PTAL |
f952353 to
2b2f436
Compare
|
Hey @jiwahn, you are right, |
|
Hello @jiwahn , you will need to add the word |
|
I updated the dict. Should I squash these commits? |
|
Yes and please rebase over main, so we can merge this one. |
Signed-off-by: Jiwoo Ahn <ikwydls1314@gmail.com>
2650ddc to
7d28306
Compare
PR: #612 Signed-off-by: Jiwoo Ahn <ikwydls1314@gmail.com> Reviewed-by: Charalampos Mainas <cmainas@nubificus.co.uk>
PR: #612 Signed-off-by: Jiwoo Ahn <ikwydls1314@gmail.com> Reviewed-by: Charalampos Mainas <cmainas@nubificus.co.uk>
Description
--alloption to keep compatibility.SIGTERMshould follow the same path asSIGKILL.Related issues
How was this tested?
sudo docker run --runtime io.containerd.urunc.v2 harbor.nbfc.io/nubificus/urunc/nginx-firecracker-unikraft-initrd:latestsudo docker kill --signal <signo> <container_id>LLM usage
GPT-5.5
Checklist
make lint).make test_ctr,make test_nerdctl,make test_docker,make test_crictl).