Skip to content

runtime: fix process liveness and exec exit status reporting - #43

Merged
jankaluza merged 1 commit into
containers:mainfrom
jankaluza:pr/zombie-detection
Aug 12, 2026
Merged

runtime: fix process liveness and exec exit status reporting#43
jankaluza merged 1 commit into
containers:mainfrom
jankaluza:pr/zombie-detection

Conversation

@jankaluza

@jankaluza jankaluza commented Jul 28, 2026

Copy link
Copy Markdown
Member

Distinguish live processes from zombies via /proc instead of kill(pid, 0),
and correctly capture fast-exiting exec status by registering the container
PID before reaping pending children. Report timeout as -1 and stop the
event loop once the container status is known.

@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@jankaluza
jankaluza force-pushed the pr/zombie-detection branch 2 times, most recently from 9df668a to c604074 Compare July 29, 2026 09:47
Comment thread src/runtime/process.rs Outdated
@jankaluza
jankaluza force-pushed the pr/zombie-detection branch from c604074 to c01bc73 Compare August 3, 2026 13:01
Comment thread src/runtime/process.rs Outdated
@jankaluza
jankaluza force-pushed the pr/zombie-detection branch from c01bc73 to a8dce1f Compare August 4, 2026 10:53
@jankaluza jankaluza changed the title runtime: distinguish live processes from zombies via /proc runtime: fix process liveness and exec exit status reporting Aug 4, 2026
@jankaluza
jankaluza force-pushed the pr/zombie-detection branch from a8dce1f to dfbe5b0 Compare August 4, 2026 11:14
@jankaluza

Copy link
Copy Markdown
Member Author

@simek-m , so this fixes the podman tests with conmon-v3.

Comment thread src/runtime/session.rs Outdated
Comment thread src/runtime/session.rs
Comment thread src/runtime/process.rs Outdated

@simek-m simek-m left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me, if I understand the whole flow. Let's see how it turns out:)

@jankaluza
jankaluza force-pushed the pr/zombie-detection branch 2 times, most recently from 8b90e8e to c1cbb8b Compare August 12, 2026 09:17
@jankaluza

Copy link
Copy Markdown
Member Author

Rebased.

Distinguish live processes from zombies via /proc instead of kill(pid, 0),
and correctly capture fast-exiting exec status by registering the container
PID before reaping pending children. Report timeout as -1 and stop the
event loop once the container status is known.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
@jankaluza
jankaluza force-pushed the pr/zombie-detection branch from c1cbb8b to e0dee8b Compare August 12, 2026 10:25
@jankaluza

Copy link
Copy Markdown
Member Author

And rebased once more :-).

@jankaluza
jankaluza merged commit a28c1c0 into containers:main Aug 12, 2026
16 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants