summaryrefslogtreecommitdiffstats
path: root/tests/timeout/init-parent.sh
AgeCommit message (Collapse)AuthorLines
2026-03-13timeout: don't exit immediately if the parent is the init processCollin Funk-0/+32
* 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.