mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
If a process is a zombie and we couldn't identify another useful state,
print out the state as "zombine" in preference to "unknown" when ^T is pressed. MFC after: 3 days Sponsored by: Google, Inc.
This commit is contained in:
parent
9c8e8e3aa7
commit
ad765b0945
1 changed files with 2 additions and 0 deletions
|
|
@ -285,6 +285,8 @@ tty_info(struct tty *tp)
|
|||
state = "suspended";
|
||||
else if (TD_AWAITING_INTR(td))
|
||||
state = "intrwait";
|
||||
else if (pick->p_state == PRS_ZOMBIE)
|
||||
state = "zombie";
|
||||
else
|
||||
state = "unknown";
|
||||
pctcpu = (sched_pctcpu(td) * 10000 + FSCALE / 2) >> FSHIFT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue