diff options
author | Christopher Faylor <me@cgf.cx> | 2010-09-01 21:06:36 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-09-01 21:06:36 +0000 |
commit | fc0e5071bcbc5670e9710c052f8ea99ab5d3c447 (patch) | |
tree | 597aaea996a1184c47b956aa9c121a138f066405 /winsup/cygwin/pinfo.cc | |
parent | b9874a0c1409a238de44a2413b8a82875fd68084 (diff) | |
download | cygnal-fc0e5071bcbc5670e9710c052f8ea99ab5d3c447.tar.gz cygnal-fc0e5071bcbc5670e9710c052f8ea99ab5d3c447.tar.bz2 cygnal-fc0e5071bcbc5670e9710c052f8ea99ab5d3c447.zip |
* 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/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 106d3573e..c2709ead1 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -62,6 +62,7 @@ pinfo::thisproc (HANDLE h) init (cygheap->pid, PID_IN_USE, h ?: INVALID_HANDLE_VALUE); procinfo->process_state |= PID_IN_USE; procinfo->dwProcessId = myself_initial.pid; + procinfo->sendsig = myself_initial.sendsig; wcscpy (procinfo->progname, myself_initial.progname); strace.hello (); debug_printf ("myself->dwProcessId %u", procinfo->dwProcessId); @@ -109,6 +110,8 @@ pinfo_init (char **envp, int envc) debug_printf ("Set nice to %d", myself->nice); } + myself->process_state |= PID_ACTIVE; + myself->process_state &= ~(PID_INITIALIZING | PID_EXITED); debug_printf ("pid %d, pgid %d", myself->pid, myself->pgid); } |