commit | 85c788572d054bc2c41b84007875edbd37ad3ed5 | [log] [tgz] |
---|---|---|
author | Paul Smith <psmith@gnu.org> | Tue Mar 08 23:07:14 2016 -0500 |
committer | Paul Smith <psmith@gnu.org> | Tue Mar 08 23:40:46 2016 -0500 |
tree | 0e6f3a19d6f438528803a394f1df1000065d27c4 | |
parent | 8164c8ab3da4026f16b7a8d343b136ebfaeaed8e [diff] |
[SV 46261] Use pselect() for jobserver where supported. * Makefile.am, configure.ac: Check for pselect() and sys/select.h. * main.c (main): Block SIGCHLD if we have pselect() support. * posixos.c (jobserver_acquire): If we support pselect() then use it to query the jobserver pipe, while also listening for SIGCHLD. Also pselect() supports a timeout so avoid alarm() calls.