I want to see if a process is waiting in sigsuspend(2) from top(1).
The current sleep string is "pause", which leaves me wondering what
the process is actually doing.  The string "sigsuspend" would make it
unambiguous.

ok?

Index: kern_sig.c
===================================================================
RCS file: /cvs/src/sys/kern/kern_sig.c,v
retrieving revision 1.268
diff -u -p -r1.268 kern_sig.c
--- kern_sig.c  7 Dec 2020 16:55:28 -0000       1.268
+++ kern_sig.c  20 Dec 2020 20:49:44 -0000
@@ -523,7 +523,7 @@ sys_sigsuspend(struct proc *p, void *v, 
        struct sigacts *ps = pr->ps_sigacts;
 
        dosigsuspend(p, SCARG(uap, mask) &~ sigcantmask);
-       while (tsleep_nsec(ps, PPAUSE|PCATCH, "pause", INFSLP) == 0)
+       while (tsleep_nsec(ps, PPAUSE|PCATCH, "sigsuspend", INFSLP) == 0)
                /* void */;
        /* always return EINTR rather than ERESTART... */
        return (EINTR);

Reply via email to