summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_thread.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index cfcdfc9..0dd5f46 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -868,12 +868,9 @@ thread_suspend_check(int return_instead)
return (ERESTART);
/*
- * Ignore suspend requests for stop signals if they
- * are deferred.
+ * Ignore suspend requests if they are deferred.
*/
- if ((P_SHOULDSTOP(p) == P_STOPPED_SIG ||
- (p->p_flag & P_TOTAL_STOP) != 0) &&
- (td->td_flags & TDF_SBDRY) != 0) {
+ if ((td->td_flags & TDF_SBDRY) != 0) {
KASSERT(return_instead,
("TDF_SBDRY set for unsafe thread_suspend_check"));
return (0);
OpenPOWER on IntegriCloud