From 85c788572d054bc2c41b84007875edbd37ad3ed5 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Tue, 8 Mar 2016 23:07:14 -0500 Subject: [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. --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 8c102a3c..96c4ae20 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,8 +16,8 @@ # You should have received a copy of the GNU General Public License along with # this program. If not, see . -AUTOMAKE_OPTIONS = 1.8 dist-bzip2 check-news -ACLOCAL_AMFLAGS = -I config +AUTOMAKE_OPTIONS = dist-bzip2 silent-rules std-options +ACLOCAL_AMFLAGS = -I config MAKE_HOST = @MAKE_HOST@ -- cgit v1.2.1