Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-10-25 07:54:50 +0400
committerChristopher Faylor <me@cgf.cx>2000-10-25 07:54:50 +0400
commitf8f9b12e6c3641678f931147b3f6f2c69c72201d (patch)
tree3243412fe0a1f729de76aff3c58103ab64086205 /winsup/cygwin/fork.cc
parent8c8d0db462de553d960b45968c3c77bb73b6b170 (diff)
* dcrt0.cc (do_exit): Don't bother looking for pgrp children to send SIGHUP if
process has never created any children. * fork.cc (fork): Set flag indicating that there is another process with our process group. * spawn.cc (spawn_guts): Ditto. * pinfo.h (set_has_pgid_children): New methods for setting when process has children in its process group. * syscalls.cc (setpgid): Clear has_gid_children if pgid changes.
Diffstat (limited to 'winsup/cygwin/fork.cc')
-rw-r--r--winsup/cygwin/fork.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc
index a05279d9c..c304d34b0 100644
--- a/winsup/cygwin/fork.cc
+++ b/winsup/cygwin/fork.cc
@@ -598,6 +598,8 @@ fork ()
void *esp;
__asm ("movl %%esp,%0": "=r" (esp));
+ myself->set_has_pgid_children ();
+
child_info_fork ch;
int res = setjmp (ch.jmp);