+2008-10-20 Bruno Haible <bruno@clisp.org>
+
+ * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
+
2008-10-20 Bruno Haible <bruno@clisp.org>
* m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
-# 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,
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);