Deleted Added
full compact
26c26
< * $FreeBSD: head/sys/kern/kern_kthread.c 104233 2002-09-30 20:20:22Z jmallett $
---
> * $FreeBSD: head/sys/kern/kern_kthread.c 104306 2002-10-01 17:15:53Z jmallett $
40d39
< #include <sys/ksiginfo.h>
148c147
< * use the signal queue.
---
> * use the p_siglist field.
155c154
< signal_add(p, NULL, SIGSTOP);
---
> SIGADDSET(p->p_siglist, SIGSTOP);
157c156
< return msleep(&p->p_sigq, &p->p_mtx, PPAUSE | PDROP, "suspkt", timo);
---
> return msleep(&p->p_siglist, &p->p_mtx, PPAUSE | PDROP, "suspkt", timo);
172c171
< signal_delete(p, NULL, SIGSTOP);
---
> SIGDELSET(p->p_siglist, SIGSTOP);
174c173
< wakeup(&p->p_sigq);
---
> wakeup(&p->p_siglist);
182,184c181,183
< while (signal_queued(p, SIGSTOP)) {
< wakeup(&p->p_sigq);
< msleep(&p->p_sigq, &p->p_mtx, PPAUSE, "ktsusp", 0);
---
> while (SIGISMEMBER(p->p_siglist, SIGSTOP)) {
> wakeup(&p->p_siglist);
> msleep(&p->p_siglist, &p->p_mtx, PPAUSE, "ktsusp", 0);