summaryrefslogtreecommitdiff
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
commitc69803a1e2b94371297debdb6cb30d5d8ba921ca (patch)
treecfe18fa54ffdc25c0b2fa31842ab867fa25e85ea /gdb/ser-pipe.c
parent548b319096bfd9a815d821e018feecec4919ed4b (diff)
downloadgdb-c69803a1e2b94371297debdb6cb30d5d8ba921ca.tar.gz
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 652d7743afa..3e232872301 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. */