Deleted Added
full compact
kern_exit.c (41059) kern_exit.c (41086)
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 * $Id: kern_exit.c,v 1.67 1998/06/05 21:44:20 dg Exp $
39 * $Id: kern_exit.c,v 1.68 1998/11/10 09:16:29 peter Exp $
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>

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

182 p->p_flag &= ~(P_TRACED | P_PPWAIT);
183 p->p_flag |= P_WEXIT;
184 p->p_sigignore = ~0;
185 p->p_siglist = 0;
186 if (timevalisset(&p->p_realtimer.it_value))
187 untimeout(realitexpire, (caddr_t)p, p->p_ithandle);
188
189 /*
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>

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

182 p->p_flag &= ~(P_TRACED | P_PPWAIT);
183 p->p_flag |= P_WEXIT;
184 p->p_sigignore = ~0;
185 p->p_siglist = 0;
186 if (timevalisset(&p->p_realtimer.it_value))
187 untimeout(realitexpire, (caddr_t)p, p->p_ithandle);
188
189 /*
190 * Reset any sigio structures pointing to us as a result of
191 * F_SETOWN with our pid.
192 */
193 funsetownlst(&p->p_sigiolst);
194
195 /*
190 * Close open files and release open-file table.
191 * This may block!
192 */
193 fdfree(p);
194
195 /*
196 * XXX Shutdown SYSV semaphores
197 */

--- 397 unchanged lines hidden ---
196 * Close open files and release open-file table.
197 * This may block!
198 */
199 fdfree(p);
200
201 /*
202 * XXX Shutdown SYSV semaphores
203 */

--- 397 unchanged lines hidden ---