coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] timeout: don't exit immediately if the parent is the init pr


From: Pádraig Brady
Subject: Re: [PATCH] timeout: don't exit immediately if the parent is the init process
Date: Sat, 14 Mar 2026 11:06:51 +0000
User-agent: Mozilla Thunderbird Beta

On 14/03/2026 03:55, Collin Funk wrote:
* src/timeout.c (main): Save the process ID before creating a child
process. Check if the result of getppid is different than the saved
process ID instead of checking if it is 1.
* tests/timeout/init-parent.sh: New file.
* tests/local.mk (all_tests): Add the new test.
* NEWS: Mention the bug fix. Also mention that this change allows
'timeout' to work when reparented by a subreaper process instead of
init.
LGTM, as discussed in https://github.com/coreutils/coreutils/issues/219

thanks,
Padraig



reply via email to

[Prev in Thread] Current Thread [Next in Thread]