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>
This commit is contained in:
John Baldwin 2000-11-29 20:22:34 +00:00
parent 86327ad8a4
commit 089f9b7e2f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69370

View File

@ -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));