diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-12-02 15:40:56 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-12-02 15:40:56 +0000 |
commit | 818fa2bf213eeaa57c3d4121832abc8b80f57a36 (patch) | |
tree | 981a9acd66b3641feab49c80f767753f3db2fc2b /gdb/fork-child.c | |
parent | ab5ba170e9111446867b2f522686d6e0b2fe3de6 (diff) | |
download | gdb-818fa2bf213eeaa57c3d4121832abc8b80f57a36.zip gdb-818fa2bf213eeaa57c3d4121832abc8b80f57a36.tar.gz gdb-818fa2bf213eeaa57c3d4121832abc8b80f57a36.tar.bz2 |
Add check for vfork() to configure.in. Cleanup uses.
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) |