timeout: handle multiple children on solaris
commit6555f418839a81e215898b2a7d6612d4d642f1ee
authorPádraig Brady <P@draigBrady.com>
Fri, 3 Mar 2017 08:30:20 +0000 (3 00:30 -0800)
committerPádraig Brady <P@draigBrady.com>
Fri, 3 Mar 2017 08:30:20 +0000 (3 00:30 -0800)
treecaea19ecfb2da64100a3f8a6e2fb9ca4ff536297
parent28803c8a3144d5d4363cdbd148bbe067af1a67c2
timeout: handle multiple children on solaris

* src/timeout.c (install_sigchld): A new function to
install the SIGCHLD handler using sigaction() rather
than signal(), because with the latter on solaris
the signal handler is reset to default and thus
sigsuspend() only returns for the first finished child.
Reported by Assaf Gordon.
src/timeout.c