Use _exit() after vfork()
Closes #2620 The docs for Mac OS X's vfork() requires it, and _exit() conforms to POSIX.1-2008. http://man7.org/linux/man-pages/man2/_exit.2.html
This commit is contained in:
parent
b897a18aa6
commit
a4f830f143
|
@ -123,7 +123,7 @@ pid_t spawn_shell(const char* shell, StringView cmdline,
|
||||||
setup_child();
|
setup_child();
|
||||||
|
|
||||||
execve(shell, (char* const*)execparams.data(), (char* const*)envptrs.data());
|
execve(shell, (char* const*)execparams.data(), (char* const*)envptrs.data());
|
||||||
exit(-1);
|
_exit(-1);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user