<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/timeout/init-parent.sh, branch master</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=master</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2026-03-14T03:37:10Z</updated>
<entry>
<title>timeout: don't exit immediately if the parent is the init process</title>
<updated>2026-03-14T03:37:10Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-03-14T03:37:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e644eea122462aa7fa98cbe9b8f93088074588a0'/>
<id>urn:sha1:e644eea122462aa7fa98cbe9b8f93088074588a0</id>
<content type='text'>
* 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.
</content>
</entry>
</feed>
