Add check for vfork() to configure.in. Cleanup uses.
[deliverable/binutils-gdb.git] / gdb / ser-pipe.c
index a510bff8da397d15a9db315a25fbb0dde2085aed..fd073c2e0a58324364ac5d10bf4a229114a85b0a 100644 (file)
@@ -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)
This page took 0.026621 seconds and 4 git commands to generate.