diff options
author | jhb <jhb@FreeBSD.org> | 2000-11-29 20:22:34 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-11-29 20:22:34 +0000 |
commit | c710e2e278fc5cc099d77001ccf0f3f790472bec (patch) | |
tree | 847fff3d4bd925fc36a09a2b6f216b5311b1ce08 /usr.bin/top/machine.c | |
parent | e96d454c32822d27500af899182dbab0751db3a5 (diff) | |
download | FreeBSD-src-c710e2e278fc5cc099d77001ccf0f3f790472bec.zip FreeBSD-src-c710e2e278fc5cc099d77001ccf0f3f790472bec.tar.gz |
Display the name of the mutex we are blocked on in the state field. To
differentiate mutex names from wait channel names, prefix mutex names with
an asterisk.
Submitted by: Dan Nelson <dnelson@emsphone.com>
Diffstat (limited to 'usr.bin/top/machine.c')
-rw-r--r-- | usr.bin/top/machine.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 06b3168..e5526bf 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -587,6 +587,12 @@ char *(*get_userid)(); else strcpy(status, "RUN"); break; + case SMTX: + if (PP(pp, p_mtxname) != NULL) { + sprintf(status, "*%.6s", EP(pp, e_mtxname)); + break; + } + /* fall through */ case SSLEEP: if (PP(pp, p_wmesg) != NULL) { sprintf(status, "%.6s", EP(pp, e_wmesg)); |