Commit 0a0c107b authored by ian@well-typed.com's avatar ian@well-typed.com
Browse files

Small cleanup of how we handle using fork vs vfork

parent 017fe3fa
......@@ -85,7 +85,7 @@ runInteractiveProcess (char *const args[],
// signal and keeps restarting indefinitely.
stopTimer();
switch(pid = fork())
switch(pid = myfork())
{
case -1:
unblockUserSignals();
......
......@@ -29,8 +29,12 @@
#include <vfork.h>
#endif
#ifdef HAVE_VFORK
#define fork vfork
#if defined(HAVE_WORKING_VFORK)
#define myfork vfork
#elif defined(HAVE_WORKING_FORK)
#define myfork fork
#else
#error Cannot find a working fork command
#endif
#ifdef HAVE_SIGNAL_H
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment