sort: fix failure if sort's parent has ignored SIGCHLD
commitf5a97b8269f11f63cf05cca1f31a08dc7567aeb9
authorPádraig Brady <P@draigBrady.com>
Tue, 8 Dec 2009 08:48:34 +0000 (8 08:48 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 8 Dec 2009 15:29:27 +0000 (8 15:29 +0000)
tree068974c268ee16418d1b08dc98e1db4e4f4daeab
parent73d46261344d5bd05c0940bc2ec5f9ed9a47db1b
sort: fix failure if sort's parent has ignored SIGCHLD

* src/sort.c (main): Reset the SIGCHLD handler to the default
as otherwise wait() could return an error.
* tests/misc/sort-compress: Set the CHLD handler in a subshell
to SIG_IGN to ensure the sort command resets it to SIG_DFL.
* NEWS: Mention the fix.
NEWS
src/sort.c
tests/misc/sort-compress