kern_exit.c (50477) | kern_exit.c (51791) |
---|---|
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 50477 1999-08-28 01:08:13Z peter $ | 39 * $FreeBSD: head/sys/kern/kern_exit.c 51791 1999-09-29 15:03:48Z marcel $ |
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> --- 120 unchanged lines hidden (view full) --- 168 MALLOC(p->p_ru, struct rusage *, sizeof(struct rusage), 169 M_ZOMBIE, M_WAITOK); 170 /* 171 * If parent is waiting for us to exit or exec, 172 * P_PPWAIT is set; we will wakeup the parent below. 173 */ 174 p->p_flag &= ~(P_TRACED | P_PPWAIT); 175 p->p_flag |= P_WEXIT; | 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> --- 120 unchanged lines hidden (view full) --- 168 MALLOC(p->p_ru, struct rusage *, sizeof(struct rusage), 169 M_ZOMBIE, M_WAITOK); 170 /* 171 * If parent is waiting for us to exit or exec, 172 * P_PPWAIT is set; we will wakeup the parent below. 173 */ 174 p->p_flag &= ~(P_TRACED | P_PPWAIT); 175 p->p_flag |= P_WEXIT; |
176 p->p_siglist = 0; | 176 SIGEMPTYSET(p->p_siglist); |
177 if (timevalisset(&p->p_realtimer.it_value)) 178 untimeout(realitexpire, (caddr_t)p, p->p_ithandle); 179 180 /* 181 * Reset any sigio structures pointing to us as a result of 182 * F_SETOWN with our pid. 183 */ 184 funsetownlst(&p->p_sigiolst); --- 475 unchanged lines hidden --- | 177 if (timevalisset(&p->p_realtimer.it_value)) 178 untimeout(realitexpire, (caddr_t)p, p->p_ithandle); 179 180 /* 181 * Reset any sigio structures pointing to us as a result of 182 * F_SETOWN with our pid. 183 */ 184 funsetownlst(&p->p_sigiolst); --- 475 unchanged lines hidden --- |