summaryrefslogtreecommitdiffstats
path: root/usr.bin/top
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-11-29 20:22:34 +0000
committerjhb <jhb@FreeBSD.org>2000-11-29 20:22:34 +0000
commitc710e2e278fc5cc099d77001ccf0f3f790472bec (patch)
tree847fff3d4bd925fc36a09a2b6f216b5311b1ce08 /usr.bin/top
parente96d454c32822d27500af899182dbab0751db3a5 (diff)
downloadFreeBSD-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')
-rw-r--r--usr.bin/top/machine.c6
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));
OpenPOWER on IntegriCloud