aboutsummaryrefslogtreecommitdiff
path: root/gdb/fork-child.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/fork-child.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/fork-child.c')
-rw-r--r--gdb/fork-child.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/fork-child.c b/gdb/fork-child.c
index a952d4f..1c19b83 100644
--- a/gdb/fork-child.c
+++ b/gdb/fork-child.c
@@ -253,6 +253,9 @@ fork_inferior (char *exec_file_arg, char *allargs, char **env,
if (pre_trace_fun != NULL)
(*pre_trace_fun) ();
+ /* Create the child process. 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. */
if (debug_fork)
pid = fork ();
else
@@ -420,7 +423,9 @@ clone_and_follow_inferior (int child_pid, int *followed_child)
if (status < 0)
error ("error getting pipe for handoff semaphore");
- /* Clone the debugger. */
+ /* Clone the debugger. 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. */
if (debug_fork)
debugger_pid = fork ();
else