aboutsummaryrefslogtreecommitdiff
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
commit818fa2bf213eeaa57c3d4121832abc8b80f57a36 (patch)
tree981a9acd66b3641feab49c80f767753f3db2fc2b /gdb/ser-pipe.c
parentab5ba170e9111446867b2f522686d6e0b2fe3de6 (diff)
downloadgdb-818fa2bf213eeaa57c3d4121832abc8b80f57a36.zip
gdb-818fa2bf213eeaa57c3d4121832abc8b80f57a36.tar.gz
gdb-818fa2bf213eeaa57c3d4121832abc8b80f57a36.tar.bz2
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 a510bff..fd073c2 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)