diff options
author | John Baldwin <jhb@FreeBSD.org> | 2000-11-29 20:22:34 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2000-11-29 20:22:34 +0000 |
commit | 089f9b7e2f010f293f62b236f3e0c09515641f9f (patch) | |
tree | 5f617ba5e36616f88052daf21f2d6ffe33ba0d5a /usr.bin/top | |
parent | 86327ad8a4cc6e1f8598ed594d4a2f9722154cce (diff) | |
download | src-089f9b7e2f010f293f62b236f3e0c09515641f9f.tar.gz src-089f9b7e2f010f293f62b236f3e0c09515641f9f.zip |
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>
Notes
Notes:
svn path=/head/; revision=69370
Diffstat (limited to 'usr.bin/top')
-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 06b316850b92..e5526bf39587 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)); |