kern_exit.c (85864) | kern_exit.c (88633) |
---|---|
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_exit.c 8.7 (Berkeley) 2/12/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_exit.c 8.7 (Berkeley) 2/12/94 |
39 * $FreeBSD: head/sys/kern/kern_exit.c 85864 2001-11-02 09:55:01Z phk $ | 39 * $FreeBSD: head/sys/kern/kern_exit.c 88633 2001-12-29 07:13:47Z alfred $ |
40 */ 41 42#include "opt_compat.h" 43#include "opt_ktrace.h" 44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/sysproto.h> --- 10 unchanged lines hidden (view full) --- 58#include <sys/resourcevar.h> 59#include <sys/signalvar.h> 60#include <sys/sx.h> 61#include <sys/ptrace.h> 62#include <sys/acct.h> /* for acct_process() function prototype */ 63#include <sys/filedesc.h> 64#include <sys/shm.h> 65#include <sys/sem.h> | 40 */ 41 42#include "opt_compat.h" 43#include "opt_ktrace.h" 44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/sysproto.h> --- 10 unchanged lines hidden (view full) --- 58#include <sys/resourcevar.h> 59#include <sys/signalvar.h> 60#include <sys/sx.h> 61#include <sys/ptrace.h> 62#include <sys/acct.h> /* for acct_process() function prototype */ 63#include <sys/filedesc.h> 64#include <sys/shm.h> 65#include <sys/sem.h> |
66#include <sys/aio.h> | |
67#include <sys/jail.h> 68 69#include <vm/vm.h> 70#include <vm/vm_param.h> 71#include <vm/vm_extern.h> 72#include <vm/pmap.h> 73#include <vm/vm_map.h> 74#include <vm/vm_zone.h> --- 60 unchanged lines hidden (view full) --- 135 printf("init died (signal %d, exit %d)\n", 136 WTERMSIG(rv), WEXITSTATUS(rv)); 137 panic("Going nowhere without my init!"); 138 } 139 140/* XXXXKSE */ 141/* MUST abort all other threads before proceeding past this point */ 142 | 66#include <sys/jail.h> 67 68#include <vm/vm.h> 69#include <vm/vm_param.h> 70#include <vm/vm_extern.h> 71#include <vm/pmap.h> 72#include <vm/vm_map.h> 73#include <vm/vm_zone.h> --- 60 unchanged lines hidden (view full) --- 134 printf("init died (signal %d, exit %d)\n", 135 WTERMSIG(rv), WEXITSTATUS(rv)); 136 panic("Going nowhere without my init!"); 137 } 138 139/* XXXXKSE */ 140/* MUST abort all other threads before proceeding past this point */ 141 |
143 aio_proc_rundown(p); 144 | |
145 /* are we a task leader? */ 146 PROC_LOCK(p); 147 if(p == p->p_leader) { 148 q = p->p_peers; 149 while (q != NULL) { 150 PROC_LOCK(q); 151 psignal(q, SIGKILL); 152 PROC_UNLOCK(q); --- 595 unchanged lines hidden --- | 142 /* are we a task leader? */ 143 PROC_LOCK(p); 144 if(p == p->p_leader) { 145 q = p->p_peers; 146 while (q != NULL) { 147 PROC_LOCK(q); 148 psignal(q, SIGKILL); 149 PROC_UNLOCK(q); --- 595 unchanged lines hidden --- |