From bd56f1e3056b3ed9c0e0cacce8eaa62e42da56ac Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 2 Dec 2000 15:40:56 +0000 Subject: Add check for vfork() to configure.in. Cleanup uses. --- gdb/ser-pipe.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/ser-pipe.c') 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) -- cgit v1.2.1