diff options
Diffstat (limited to 'gdb/fork-child.c')
-rw-r--r-- | gdb/fork-child.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/fork-child.c b/gdb/fork-child.c index 147a59f..e97f451 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -244,13 +244,13 @@ fork_inferior (char *exec_file, char *allargs, char **env, if (pre_trace_fun != NULL) (*pre_trace_fun) (); -#if defined(USG) && !defined(HAVE_VFORK) - pid = fork (); -#else +#ifdef HAVE_VFORK if (debug_fork) pid = fork (); else pid = vfork (); +#else + pid = fork (); #endif if (pid < 0) @@ -416,13 +416,13 @@ clone_and_follow_inferior (int child_pid, int *followed_child) error ("error getting pipe for handoff semaphore"); /* Clone the debugger. */ -#if defined(USG) && !defined(HAVE_VFORK) - debugger_pid = fork (); -#else +#ifdef HAVE_VFORK if (debug_fork) debugger_pid = fork (); else debugger_pid = vfork (); +#else + debugger_pid = fork (); #endif if (debugger_pid < 0) |