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:
Jason Felice 2018-12-07 09:36:06 -05:00
parent b897a18aa6
commit a4f830f143

View File

@ -123,7 +123,7 @@ pid_t spawn_shell(const char* shell, StringView cmdline,
setup_child();
execve(shell, (char* const*)execparams.data(), (char* const*)envptrs.data());
exit(-1);
_exit(-1);
return -1;
}