diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-01-31 02:08:23 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-01-31 02:08:23 +0000 |
commit | 74c1b268c657a9845250bfd8d30ead960b38771b (patch) | |
tree | 7296cb92c291bdf44263b51d6f75367c17fa1d3c /gdb/fork-child.c | |
parent | 4fcf66da885273eeeea8e14b771d0e3ea20799d9 (diff) | |
download | gdb-74c1b268c657a9845250bfd8d30ead960b38771b.zip gdb-74c1b268c657a9845250bfd8d30ead960b38771b.tar.gz gdb-74c1b268c657a9845250bfd8d30ead960b38771b.tar.bz2 |
Cleanup autoconfigury of vfork().
Diffstat (limited to 'gdb/fork-child.c')
-rw-r--r-- | gdb/fork-child.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/fork-child.c b/gdb/fork-child.c index e97f451..3e889da 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -25,6 +25,7 @@ #include "inferior.h" #include "target.h" #include "gdb_wait.h" +#include "gdb_vfork.h" #include "gdbcore.h" #include "terminal.h" #include "gdbthread.h" @@ -244,14 +245,10 @@ fork_inferior (char *exec_file, char *allargs, char **env, if (pre_trace_fun != NULL) (*pre_trace_fun) (); -#ifdef HAVE_VFORK if (debug_fork) pid = fork (); else pid = vfork (); -#else - pid = fork (); -#endif if (pid < 0) perror_with_name ("vfork"); |