summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fork.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-06-24 21:57:50 +0000
committerChristopher Faylor <me@cgf.cx>2001-06-24 21:57:50 +0000
commit125205875b0b7daf8ab919387924a98b83d918b7 (patch)
tree2e9ea0689cb086c404f69ce8a397210ea8605dc5 /winsup/cygwin/fork.cc
parent50b1264871afbdcb14a1fd5fae3fe3bc358c0bad (diff)
downloadcygnal-125205875b0b7daf8ab919387924a98b83d918b7.tar.gz
cygnal-125205875b0b7daf8ab919387924a98b83d918b7.tar.bz2
cygnal-125205875b0b7daf8ab919387924a98b83d918b7.zip
* exceptions.cc (interrupt_setup): Move actions from setup_handler to here.
(setup_handler): Move actions after a successful interrupt to interrupt_setup. * fork.cc (vfork): Augment debugging output. * sigproc.cc (proc_subproc): Ditto. * spawn.cc (spawn_guts): Ditto. Correctly fill out progname when spawn NO_WAIT. Call signal handler when a signal arrives. * sigproc.h: Declare a function.
Diffstat (limited to 'winsup/cygwin/fork.cc')
-rw-r--r--winsup/cygwin/fork.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc
index b44855497..ac9f855e9 100644
--- a/winsup/cygwin/fork.cc
+++ b/winsup/cygwin/fork.cc
@@ -708,7 +708,9 @@ vfork ()
for (pp = (char **)vf->frame, esp = vf->vfork_esp;
esp <= vf->vfork_ebp + 1; pp++, esp++)
*pp = *esp;
- return cygheap->fdtab.vfork_child_dup () ? 0 : -1;
+ int res = cygheap->fdtab.vfork_child_dup () ? 0 : -1;
+ debug_printf ("%d = vfork()", res);
+ return res;
}
cygheap->fdtab.vfork_parent_restore ();