diff options
author | Christopher Faylor <me@cgf.cx> | 2000-10-15 03:43:48 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-10-15 03:43:48 +0000 |
commit | 5460fae73f298cd0e3a9f3881aaa70fa01ff3e2c (patch) | |
tree | c8707ad59b60d014bf7061223594f0ddf9215b67 /winsup/utils/ps.cc | |
parent | 1dc16fc74bb91136d75b656f3a4aaefa87af9f20 (diff) | |
download | newlib-5460fae73f298cd0e3a9f3881aaa70fa01ff3e2c.zip newlib-5460fae73f298cd0e3a9f3881aaa70fa01ff3e2c.tar.gz newlib-5460fae73f298cd0e3a9f3881aaa70fa01ff3e2c.tar.bz2 |
* ps.cc (main): Accomodate new PID_ constant.
Diffstat (limited to 'winsup/utils/ps.cc')
-rw-r--r-- | winsup/utils/ps.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/utils/ps.cc b/winsup/utils/ps.cc index b9c391f..b1e94df 100644 --- a/winsup/utils/ps.cc +++ b/winsup/utils/ps.cc @@ -246,8 +246,6 @@ main (int argc, char *argv[]) (p = (external_pinfo *) cygwin_internal (query, pid | CW_NEXTPID)); pid = p->pid) { - if (p->process_state == PID_NOT_IN_USE) - continue; if (!aflag && p->uid != uid) continue; char status = ' '; @@ -259,7 +257,7 @@ main (int argc, char *argv[]) status = 'O'; char pname[MAX_PATH]; - if (p->process_state & PID_ZOMBIE) + if (p->process_state & (PID_ZOMBIE | PID_EXITED)) strcpy (pname, "<defunct>"); else if (p->ppid) { |