summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-11-20 10:21:23 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-11-20 10:21:23 +0000
commitb6cab35954bd0cb1925df1546d84311326a3591f (patch)
tree0e1f525b144720b4b993d309aafbb2d211792580
parent04fa2c411bde4e101458a8151bbacaba23a16ba5 (diff)
No need to call unsleep() if p_wchan is NULL.
OK mpi@
-rw-r--r--sys/kern/kern_sig.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index abbb4ff8afc..a4d738f9854 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sig.c,v 1.350 2024/11/16 13:06:06 claudio Exp $ */
+/* $OpenBSD: kern_sig.c,v 1.351 2024/11/20 10:21:22 claudio Exp $ */
/* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */
/*
@@ -1117,7 +1117,6 @@ ptsignal_locked(struct proc *p, int signum, enum signal_type type)
goto out;
}
if (p->p_wchan == NULL) {
- unsleep(p);
setrunnable(p);
goto out;
}