Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-12-22 08:26:14 +0300
committerChristopher Faylor <me@cgf.cx>2005-12-22 08:26:14 +0300
commit718dee922f2a168f752a7bceb93f85d114aaceb7 (patch)
tree0bfbd9a80b309112c75d677460466b221086a289 /winsup/cygwin
parent3962fad13729139ce2b17a2c7fb64ec389a470ab (diff)
* 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/ChangeLog5
-rw-r--r--winsup/cygwin/pinfo.cc3
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