From 508be1cc96e188668c2bf19485cf3302030ce5d7 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 20 Oct 2008 13:08:37 +0200 Subject: [PATCH] Make the check on MacOS X. --- ChangeLog | 4 ++++ m4/posix_spawn.m4 | 13 +++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 808ebc5f0..00c63e529 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-10-20 Bruno Haible + * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X. + +2008-10-20 Bruno Haible + * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead of AC_LANG_PROGRAM. diff --git a/m4/posix_spawn.m4 b/m4/posix_spawn.m4 index a6839eec9..1ae2005f5 100644 --- a/m4/posix_spawn.m4 +++ b/m4/posix_spawn.m4 @@ -1,4 +1,4 @@ -# posix_spawn.m4 serial 3 +# posix_spawn.m4 serial 4 dnl Copyright (C) 2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -159,9 +159,14 @@ main () if (attrs_allocated) posix_spawnattr_destroy (&attrs); sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL); - errno = err; - perror ("subprocess failed"); - exit (1); + if (err == ENOENT) + return 0; + else + { + errno = err; + perror ("subprocess failed"); + exit (1); + } } posix_spawn_file_actions_destroy (&actions); posix_spawnattr_destroy (&attrs); -- 2.11.0