diff options
author | Christopher Faylor <me@cgf.cx> | 2005-09-02 17:35:22 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-09-02 17:35:22 +0000 |
commit | be7d909395d7a2b6e6b656997057c631dddfa2d7 (patch) | |
tree | 534d8ccf2559402dd8e2ea6881e8656312275e6d /winsup/cygwin/pinfo.cc | |
parent | 414808f9e01ce103d2bc67d4ddaa802125ce5512 (diff) | |
download | cygnal-be7d909395d7a2b6e6b656997057c631dddfa2d7.tar.gz cygnal-be7d909395d7a2b6e6b656997057c631dddfa2d7.tar.bz2 cygnal-be7d909395d7a2b6e6b656997057c631dddfa2d7.zip |
Grr. REVERT erroneous checkin. AGAIN.
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; } |