Skip to content

timeout: add parent-death guard for monitored command#11404

Open
can1357 wants to merge 1 commit intouutils:mainfrom
can1357:timeout-add-parent-death-guard-for-monitored-command
Open

timeout: add parent-death guard for monitored command#11404
can1357 wants to merge 1 commit intouutils:mainfrom
can1357:timeout-add-parent-death-guard-for-monitored-command

Conversation

@can1357
Copy link
Contributor

@can1357 can1357 commented Mar 18, 2026

uutils timeout only configures parent-death signaling, and does not perform GNU's follow-up reparent check after setup.

Impact

On Linux, if the monitor exits after setting set_pdeathsig but before checking that its own parent is still alive, a child command can outlive the timeout supervisor.

@oech3
Copy link
Contributor

oech3 commented Mar 19, 2026

Dangerous? coreutils/coreutils#219

@github-actions
Copy link

GNU testsuite comparison:

Note: The gnu test tests/dd/no-allocate is now being skipped but was previously passing.

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