diff options
author | Christopher Faylor <me@cgf.cx> | 2010-09-02 01:06:36 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-09-02 01:06:36 +0400 |
commit | fc0e5071bcbc5670e9710c052f8ea99ab5d3c447 (patch) | |
tree | 597aaea996a1184c47b956aa9c121a138f066405 /winsup/cygwin/fork.cc | |
parent | b9874a0c1409a238de44a2413b8a82875fd68084 (diff) |
* dcrt0.cc (dll_crt0_0): Remove myself settings.
* fork.cc (fork): Set myself process_state
* pinfo.cc (pinfo_init): Ditto.
(pinfo::thisproc): Make sure any sendsig setting is correctly copied.
* pinfo.h: Update copyright. Remove unused code.
Diffstat (limited to 'winsup/cygwin/fork.cc')
-rw-r--r-- | winsup/cygwin/fork.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc index b942c72fc..5a70c7b87 100644 --- a/winsup/cygwin/fork.cc +++ b/winsup/cygwin/fork.cc @@ -619,7 +619,10 @@ fork () MALLOC_CHECK; if (ischild) - /* nothing to do */; + { + myself->process_state |= PID_ACTIVE; + myself->process_state &= ~(PID_INITIALIZING | PID_EXITED); + } else if (res < 0) { if (!grouped.error) |