Skip to content
Snippets Groups Projects
Commit cba7a4c2 authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

Revert "Use POSIX_SPAWN_CLOEXEC_DEFAULT in posix_spawn.c when available"

This reverts commit f47c8699.
parent 97e924aa
No related branches found
No related tags found
No related merge requests found
......@@ -108,15 +108,9 @@ do_spawn_posix (char *const args[],
if (childGroup || childUser) {
return -2;
}
short spawn_flags = 0;
if ((flags & RUN_PROCESS_IN_CLOSE_FDS) != 0) {
#if defined(HAVE_POSIX_SPAWN_CLOEXEC_DEFAULT)
spawn_flags |= POSIX_SPAWN_CLOEXEC_DEFAULT;
#else
// TODO: can this be efficiently supported?
return -2;
#endif
}
// Now the main act...
......@@ -125,6 +119,7 @@ do_spawn_posix (char *const args[],
posix_spawnattr_t sa;
int r;
ProcHandle ret;
short spawn_flags = 0;
r = posix_spawn_file_actions_init(&fa);
if (r != 0) {
......
......@@ -31,10 +31,6 @@ AC_CHECK_DECLS([POSIX_SPAWN_SETSID, POSIX_SPAWN_SETSID_NP],[],[],[
#define _GNU_SOURCE
#include <spawn.h>
])
AC_CHECK_DECLS([POSIX_SPAWN_CLOEXEC_DEFAULT],[],[],[
#define _GNU_SOURCE
#include <spawn.h>
])
AC_CHECK_DECLS([POSIX_SPAWN_SETPGROUP],[],[],[
#define _GNU_SOURCE
#include <spawn.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment