diff options
author | Christopher Faylor <me@cgf.cx> | 2005-09-05 17:30:04 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-09-05 17:30:04 +0000 |
commit | a743e3b94089a13f47b3294e91027cecbf29fe0f (patch) | |
tree | e60d29c389beb2a11a62a1dfb50d4fe69ab5059a /winsup/cygwin/pinfo.cc | |
parent | bf58ec35b4e79aa656b057bc754b64fe39e270da (diff) | |
download | cygnal-a743e3b94089a13f47b3294e91027cecbf29fe0f.tar.gz cygnal-a743e3b94089a13f47b3294e91027cecbf29fe0f.tar.bz2 cygnal-a743e3b94089a13f47b3294e91027cecbf29fe0f.zip |
* cygheap.cc (cygheap_init): Eliminate debugging #if.
* fork.cc (fork_parent): Don't issue errors if "somebody" has set the
PID_EXITED flag on a child. Don't close process handle if it has potentially
already been closed.
* pinfo.cc (winpids::add): Eliminate PID_ALLPIDS handling which was obsoleted
by previous changes.
* spawn.cc (av::fixup): Do win16 detection for .com files. Make sure that
buffer has been unmapped in all cases.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 1a08f575b..0e89ca03b 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -1196,8 +1196,7 @@ winpids::add (DWORD& nelem, bool winpid, DWORD pid) pinfolist = (pinfo *) realloc (pinfolist, size_pinfolist (npidlist + 1)); } - pinfolist[nelem].init (cygpid, PID_NOREDIR | (winpid ? PID_ALLPIDS : 0) - | pinfo_access, NULL); + pinfolist[nelem].init (cygpid, PID_NOREDIR | pinfo_access, NULL); if (winpid) goto out; @@ -1205,7 +1204,7 @@ winpids::add (DWORD& nelem, bool winpid, DWORD pid) { if (!pinfo_access) return; - pinfolist[nelem].init (cygpid, PID_NOREDIR | (winpid ? PID_ALLPIDS : 0), NULL); + pinfolist[nelem].init (cygpid, PID_NOREDIR, NULL); if (!pinfolist[nelem]) return; } |