]> git.ipfire.org Git - thirdparty/coreutils.git/commit
timeout: fix a small race that would ignore command exit
authorPádraig Brady <P@draigBrady.com>
Tue, 24 Oct 2017 02:58:56 +0000 (19:58 -0700)
committerPádraig Brady <P@draigBrady.com>
Tue, 24 Oct 2017 06:10:42 +0000 (23:10 -0700)
commitcbf35912da66a17a6113d5a434214dd7651f403a
tree97a212f91808ea664bfaf2dc3e5a7401d3b72746
parentcccd01b4dae1061dcad2ae14bea976ed86268d9b
timeout: fix a small race that would ignore command exit

This fixes a regression from commit v8.26-39-g2f69dba

* src/timeout.c (block_cleanup_and_chld): Rename from block_cleanup
to indicate we also block SIGCHLD to avoid the race where SIGCHLD
fires between waitpid() polling and sigsuspend() waiting for a signal.
* NEWS: Mention the fix.
NEWS
src/timeout.c