summaryrefslogtreecommitdiffstats
path: root/bin/ps
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2003-04-15 18:49:20 +0000
committercharnier <charnier@FreeBSD.org>2003-04-15 18:49:20 +0000
commit1315d25026be8cd49b9425f3ce363949e05b2afa (patch)
treead1eac156aa07bbc708d0da1d90cfcb61fabf263 /bin/ps
parent966c63b53a984aa687ad8a8f99d7bd1349f83f3a (diff)
downloadFreeBSD-src-1315d25026be8cd49b9425f3ce363949e05b2afa.zip
FreeBSD-src-1315d25026be8cd49b9425f3ce363949e05b2afa.tar.gz
Revert the zombie part of previous commit
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index a48c4ec..7700491 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -500,7 +500,7 @@ cputime(KINFO *k, VARENT *ve)
if (decimal_point == '\0')
decimal_point = localeconv()->decimal_point[0];
v = ve->var;
- if (!k->ki_valid) {
+ if (k->ki_p->ki_stat == SZOMB || !k->ki_valid) {
secs = 0;
psecs = 0;
} else {
OpenPOWER on IntegriCloud