summaryrefslogtreecommitdiff
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
commit28ab38fa7224b3972d290e5e1e2f048bbc4adf30 (patch)
tree1a2b27a782a9a829d8b07cc34181b4be7c485914 /gdb/ser-pipe.c
parent515fe7971c2f812953bf4a117263739727eb7336 (diff)
downloadgdb-28ab38fa7224b3972d290e5e1e2f048bbc4adf30.tar.gz
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 9c915b0853a..a172e710582 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)