aboutsummaryrefslogtreecommitdiffstats
path: root/executor/subprocess.h
diff options
context:
space:
mode:
Diffstat (limited to 'executor/subprocess.h')
-rw-r--r--executor/subprocess.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/executor/subprocess.h b/executor/subprocess.h
index 5e638c1f5..d2b732725 100644
--- a/executor/subprocess.h
+++ b/executor/subprocess.h
@@ -56,9 +56,9 @@ public:
"GLIBC_TUNABLES=glibc.pthread.rseq=0",
nullptr};
- if (posix_spawn(&pid_, argv[0], &actions, &attr,
- const_cast<char**>(argv), const_cast<char**>(child_envp)))
- fail("posix_spawn failed");
+ if (posix_spawnp(&pid_, argv[0], &actions, &attr,
+ const_cast<char**>(argv), const_cast<char**>(child_envp)))
+ fail("posix_spawnp failed");
if (posix_spawn_file_actions_destroy(&actions))
fail("posix_spawn_file_actions_destroy failed");