Deleted Added
full compact
kern_sig.c (72200) kern_sig.c (72276)
1/*
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_sig.c 8.7 (Berkeley) 4/18/94
1/*
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_sig.c 8.7 (Berkeley) 4/18/94
39 * $FreeBSD: head/sys/kern/kern_sig.c 72200 2001-02-09 06:11:45Z bmilekic $
39 * $FreeBSD: head/sys/kern/kern_sig.c 72276 2001-02-10 02:20:34Z jhb $
40 */
41
42#include "opt_compat.h"
43#include "opt_ktrace.h"
44
45#include <sys/param.h>
46#include <sys/kernel.h>
47#include <sys/sysproto.h>

--- 1198 unchanged lines hidden (view full) ---

1246
1247 default:
1248 /*
1249 * SRUN, SIDL, SZOMB do nothing with the signal,
1250 * other than kicking ourselves if we are running.
1251 * It will either never be noticed, or noticed very soon.
1252 */
1253 if (p == curproc) {
40 */
41
42#include "opt_compat.h"
43#include "opt_ktrace.h"
44
45#include <sys/param.h>
46#include <sys/kernel.h>
47#include <sys/sysproto.h>

--- 1198 unchanged lines hidden (view full) ---

1246
1247 default:
1248 /*
1249 * SRUN, SIDL, SZOMB do nothing with the signal,
1250 * other than kicking ourselves if we are running.
1251 * It will either never be noticed, or noticed very soon.
1252 */
1253 if (p == curproc) {
1254 mtx_unlock_spin(&sched_lock);
1255 signotify(p);
1254 signotify(p);
1255 mtx_unlock_spin(&sched_lock);
1256 }
1257#ifdef SMP
1258 else if (p->p_stat == SRUN) {
1259 mtx_unlock_spin(&sched_lock);
1260 forward_signal(p);
1261 }
1262#endif
1263 else

--- 593 unchanged lines hidden ---
1256 }
1257#ifdef SMP
1258 else if (p->p_stat == SRUN) {
1259 mtx_unlock_spin(&sched_lock);
1260 forward_signal(p);
1261 }
1262#endif
1263 else

--- 593 unchanged lines hidden ---