summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sig.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2002-07-24 07:23:41 +0000
committerjulian <julian@FreeBSD.org>2002-07-24 07:23:41 +0000
commit50bdfea7d15508a0f5821159a0c1f6cfcc0f431a (patch)
tree3f0cc897e37c230e3983f59287b69b6b49af69c5 /sys/kern/kern_sig.c
parent86b3836232069126cbad3fccd52778f5adc4a676 (diff)
downloadFreeBSD-src-50bdfea7d15508a0f5821159a0c1f6cfcc0f431a.zip
FreeBSD-src-50bdfea7d15508a0f5821159a0c1f6cfcc0f431a.tar.gz
revert some of the handling of STOP signals in
issignal(). Let thread_suspend_check() actually do the suspension at the user boundary. Submitted by: David Xu <bsddiy@yahoo.com>
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r--sys/kern/kern_sig.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 5c1ef0f..448cb4a 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1657,7 +1657,6 @@ issignal(td)
#endif
break; /* == ignore */
}
-#if 0
/*
* If there is a pending stop signal to process
* with default action, stop here,
@@ -1679,16 +1678,9 @@ issignal(td)
PROC_UNLOCK(p->p_pptr);
mtx_lock_spin(&sched_lock);
stop(p);
- PROC_UNLOCK(p);
- DROP_GIANT();
- p->p_stats->p_ru.ru_nivcsw++;
- mi_switch();
mtx_unlock_spin(&sched_lock);
- PICKUP_GIANT();
- PROC_LOCK(p);
break;
} else
-#endif
if (prop & SA_IGNORE) {
/*
* Except for SIGCONT, shouldn't get here.
OpenPOWER on IntegriCloud