Remove maybeVfork
This commit is contained in:
parent
04170d06bf
commit
7911e4c27a
5 changed files with 4 additions and 18 deletions
|
@ -868,7 +868,7 @@ string runProgram(Path program, bool searchPath, const Strings & args)
|
|||
|
||||
/* Fork. */
|
||||
Pid pid;
|
||||
pid = maybeVfork();
|
||||
pid = fork();
|
||||
|
||||
switch (pid) {
|
||||
|
||||
|
@ -928,13 +928,6 @@ void closeOnExec(int fd)
|
|||
}
|
||||
|
||||
|
||||
#if HAVE_VFORK
|
||||
pid_t (*maybeVfork)() = vfork;
|
||||
#else
|
||||
pid_t (*maybeVfork)() = fork;
|
||||
#endif
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue