aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-pipe.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2001-04-08 18:26:03 +0000
committerKevin Buettner <kevinb@redhat.com>2001-04-08 18:26:03 +0000
commit7700434b5c52c609453111e16e49a2708d699041 (patch)
treec635673fdda578fb20e674128e03d44cf21d4332 /gdb/ser-pipe.c
parentd493eb331e42b99fd3a9cea536f4dda6d5e8e961 (diff)
downloadgdb-7700434b5c52c609453111e16e49a2708d699041.zip
gdb-7700434b5c52c609453111e16e49a2708d699041.tar.gz
gdb-7700434b5c52c609453111e16e49a2708d699041.tar.bz2
Add comments noting that vfork might be defined to be fork.
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 652d774..3e23287 100644
--- a/gdb/ser-pipe.c
+++ b/gdb/ser-pipe.c
@@ -65,6 +65,10 @@ pipe_open (serial_t scb, const char *name)
if (socketpair (AF_UNIX, SOCK_STREAM, 0, pdes) < 0)
return -1;
+ /* Create the child process to run the command in. Note that the
+ apparent call to vfork() below *might* actually be a call to
+ fork() due to the fact that autoconf will ``#define vfork fork''
+ on certain platforms. */
pid = vfork ();
/* Error. */