slight stylisations to take into account recent code changes.
This commit is contained in:
parent
b6d5995e5f
commit
294e6308bf
@ -536,11 +536,8 @@ msleep(ident, mtx, priority, wmesg, timo)
|
||||
mtx_unlock_spin(&sched_lock);
|
||||
PROC_LOCK(p);
|
||||
sig = cursig(td);
|
||||
if (sig == 0) {
|
||||
if (thread_suspend_check(1)) {
|
||||
sig = SIGSTOP;
|
||||
}
|
||||
}
|
||||
if (sig == 0 && thread_suspend_check(1))
|
||||
sig = SIGSTOP;
|
||||
mtx_lock_spin(&sched_lock);
|
||||
PROC_UNLOCK(p);
|
||||
if (sig != 0) {
|
||||
@ -548,9 +545,8 @@ msleep(ident, mtx, priority, wmesg, timo)
|
||||
unsleep(td);
|
||||
} else if (td->td_wchan == NULL)
|
||||
catch = 0;
|
||||
} else {
|
||||
} else
|
||||
sig = 0;
|
||||
}
|
||||
if (td->td_wchan != NULL) {
|
||||
p->p_stats->p_ru.ru_nvcsw++;
|
||||
td->td_state = TDS_SLP;
|
||||
|
Loading…
Reference in New Issue
Block a user