summaryrefslogtreecommitdiff
path: root/gdb/ser-pipe.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-12-02 15:40:56 +0000
committerAndrew Cagney <cagney@redhat.com>2000-12-02 15:40:56 +0000
commitbd56f1e3056b3ed9c0e0cacce8eaa62e42da56ac (patch)
tree24716d393956c32fb0575cb1c3b792d86a5d14a1 /gdb/ser-pipe.c
parentf61fe204a2896b7d146ba4335c4be0392432247b (diff)
downloadgdb-bd56f1e3056b3ed9c0e0cacce8eaa62e42da56ac.tar.gz
Add check for vfork() to configure.in. Cleanup uses.
Diffstat (limited to 'gdb/ser-pipe.c')
-rw-r--r--gdb/ser-pipe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c
index a510bff8da3..fd073c2e0a5 100644
--- a/gdb/ser-pipe.c
+++ b/gdb/ser-pipe.c
@@ -64,7 +64,11 @@ 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)