summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2002-07-24 23:59:15 +0000
committerjulian <julian@FreeBSD.org>2002-07-24 23:59:15 +0000
commitd1562293565bdf8b3bdf011de6cfeeabe85768c7 (patch)
treec709c61f492f62ba21958bbb4dacab6d40b87338
parent7e6f866aa8e76c60d6bc939bab8979a5c58f90b3 (diff)
downloadFreeBSD-src-d1562293565bdf8b3bdf011de6cfeeabe85768c7.zip
FreeBSD-src-d1562293565bdf8b3bdf011de6cfeeabe85768c7.tar.gz
slight stylisations to take into account recent code changes.
-rw-r--r--sys/kern/kern_synch.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 4dc7728..d553842 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -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;
OpenPOWER on IntegriCloud