aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-pipe.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-01-31 02:08:23 +0000
committerAndrew Cagney <cagney@redhat.com>2001-01-31 02:08:23 +0000
commit74c1b268c657a9845250bfd8d30ead960b38771b (patch)
tree7296cb92c291bdf44263b51d6f75367c17fa1d3c /gdb/ser-pipe.c
parent4fcf66da885273eeeea8e14b771d0e3ea20799d9 (diff)
downloadgdb-74c1b268c657a9845250bfd8d30ead960b38771b.zip
gdb-74c1b268c657a9845250bfd8d30ead960b38771b.tar.gz
gdb-74c1b268c657a9845250bfd8d30ead960b38771b.tar.bz2
Cleanup autoconfigury of vfork().
Diffstat (limited to 'gdb/ser-pipe.c')
-rw-r--r--gdb/ser-pipe.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c
index 9c915b0..a172e71 100644
--- a/gdb/ser-pipe.c
+++ b/gdb/ser-pipe.c
@@ -24,6 +24,8 @@
#include "serial.h"
#include "ser-unix.h"
+#include "gdb_vfork.h"
+
#include <sys/types.h>
#include "gdb_wait.h"
#include <sys/socket.h>
@@ -64,11 +66,7 @@ pipe_open (serial_t scb, const char *name)
if (socketpair (AF_UNIX, SOCK_STREAM, 0, pdes) < 0)
return -1;
-#ifdef HAVE_VFORK
pid = vfork ();
-#else
- pid = fork ();
-#endif
/* Error. */
if (pid == -1)