diff options
author | Christopher Faylor <me@cgf.cx> | 2005-09-02 04:51:09 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-09-02 04:51:09 +0000 |
commit | b8a66ba2cdef71c64a38ba3cc5609df3da41620e (patch) | |
tree | aaf3c05def84c2051de08dba632e74216966c6f8 /winsup/cygwin/pinfo.cc | |
parent | 7a1bf10a8433261a1dd4ae86b76750716d358569 (diff) | |
download | cygnal-b8a66ba2cdef71c64a38ba3cc5609df3da41620e.tar.gz cygnal-b8a66ba2cdef71c64a38ba3cc5609df3da41620e.tar.bz2 cygnal-b8a66ba2cdef71c64a38ba3cc5609df3da41620e.zip |
revert inexplicable previous checkin
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 0e89ca03b..1a08f575b 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -1196,7 +1196,8 @@ winpids::add (DWORD& nelem, bool winpid, DWORD pid) pinfolist = (pinfo *) realloc (pinfolist, size_pinfolist (npidlist + 1)); } - pinfolist[nelem].init (cygpid, PID_NOREDIR | pinfo_access, NULL); + pinfolist[nelem].init (cygpid, PID_NOREDIR | (winpid ? PID_ALLPIDS : 0) + | pinfo_access, NULL); if (winpid) goto out; @@ -1204,7 +1205,7 @@ winpids::add (DWORD& nelem, bool winpid, DWORD pid) { if (!pinfo_access) return; - pinfolist[nelem].init (cygpid, PID_NOREDIR, NULL); + pinfolist[nelem].init (cygpid, PID_NOREDIR | (winpid ? PID_ALLPIDS : 0), NULL); if (!pinfolist[nelem]) return; } |