diff options
author | Christopher Faylor <me@cgf.cx> | 2005-12-22 05:26:14 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-12-22 05:26:14 +0000 |
commit | 718dee922f2a168f752a7bceb93f85d114aaceb7 (patch) | |
tree | 0bfbd9a80b309112c75d677460466b221086a289 /winsup/cygwin | |
parent | 3962fad13729139ce2b17a2c7fb64ec389a470ab (diff) | |
download | cygnal-718dee922f2a168f752a7bceb93f85d114aaceb7.tar.gz cygnal-718dee922f2a168f752a7bceb93f85d114aaceb7.tar.bz2 cygnal-718dee922f2a168f752a7bceb93f85d114aaceb7.zip |
* pinfo.cc (winpids::add): Increment nelem when winpid is true since we don't
care if it's a cygwin process in that case.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/pinfo.cc | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c3dfbf4ea..fdd452cd2 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2005-12-22 Christopher Faylor <cgf@timesys.com> + * pinfo.cc (winpids::add): Increment nelem when winpid is true since we + don't care if it's a cygwin process in that case. + +2005-12-22 Christopher Faylor <cgf@timesys.com> + * pinfo.cc (winpids::release): Fix typo. 2005-12-21 Christopher Faylor <cgf@timesys.com> diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 7851dda21..2cf848ebf 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -1214,8 +1214,9 @@ out: p.destroy = false; } } - pidlist[nelem++] = pid; } + if (p || winpid) + pidlist[nelem++] = pid; } DWORD |