summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2020-03-26 08:03:51 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2020-03-26 08:03:51 +0000
commita508f812260e978ac824c2dfad302e2b49e1b96b (patch)
tree1ae904ef33c0326aaad887d8f08bee9de1dffea2 /sys/kern
parent465916cb77cc083475a275eb4bd4c62c3cd454d9 (diff)
Revert Rev 1.164. Setting sls_sig to 0 uncovered a bunch of issues when it
comes to setting a process into single thread mode. It is still worng but first the interaction with single_thread_set() must be corrected.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_synch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index bb77ee31048..bbafa3a6498 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_synch.c,v 1.167 2020/03/23 15:42:10 visa Exp $ */
+/* $OpenBSD: kern_synch.c,v 1.168 2020/03/26 08:03:50 claudio Exp $ */
/* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */
/*
@@ -375,7 +375,7 @@ sleep_setup(struct sleep_state *sls, const volatile void *ident, int prio,
sls->sls_catch = prio & PCATCH;
sls->sls_do_sleep = 1;
sls->sls_locked = 0;
- sls->sls_sig = 0;
+ sls->sls_sig = 1;
sls->sls_timeout = 0;
/*