1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

Remove maybeVfork

This commit is contained in:
Eelco Dolstra 2014-06-23 09:15:35 -04:00
parent 04170d06bf
commit 7911e4c27a
5 changed files with 4 additions and 18 deletions

View file

@ -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
//////////////////////////////////////////////////////////////////////

View file

@ -266,9 +266,6 @@ void closeMostFDs(const set<int> & exceptions);
/* Set the close-on-exec flag for the given file descriptor. */
void closeOnExec(int fd);
/* Call vfork() if available, otherwise fork(). */
extern pid_t (*maybeVfork)();
/* User interruption. */