Deleted Added
full compact
kern_proc.c (295435) kern_proc.c (298069)
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)kern_proc.c 8.7 (Berkeley) 2/14/95
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)kern_proc.c 8.7 (Berkeley) 2/14/95
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/kern/kern_proc.c 295435 2016-02-09 16:30:16Z kib $");
33__FBSDID("$FreeBSD: head/sys/kern/kern_proc.c 298069 2016-04-15 16:10:11Z pfg $");
34
35#include "opt_compat.h"
36#include "opt_ddb.h"
37#include "opt_ktrace.h"
38#include "opt_kstack_pages.h"
39#include "opt_stack.h"
40
41#include <sys/param.h>

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

1439 return (error);
1440 sx_slock(&proctree_lock);
1441 sx_slock(&allproc_lock);
1442 for (doingzomb=0 ; doingzomb < 2 ; doingzomb++) {
1443 if (!doingzomb)
1444 p = LIST_FIRST(&allproc);
1445 else
1446 p = LIST_FIRST(&zombproc);
34
35#include "opt_compat.h"
36#include "opt_ddb.h"
37#include "opt_ktrace.h"
38#include "opt_kstack_pages.h"
39#include "opt_stack.h"
40
41#include <sys/param.h>

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

1439 return (error);
1440 sx_slock(&proctree_lock);
1441 sx_slock(&allproc_lock);
1442 for (doingzomb=0 ; doingzomb < 2 ; doingzomb++) {
1443 if (!doingzomb)
1444 p = LIST_FIRST(&allproc);
1445 else
1446 p = LIST_FIRST(&zombproc);
1447 for (; p != 0; p = LIST_NEXT(p, p_list)) {
1447 for (; p != NULL; p = LIST_NEXT(p, p_list)) {
1448 /*
1449 * Skip embryonic processes.
1450 */
1451 PROC_LOCK(p);
1452 if (p->p_state == PRS_NEW) {
1453 PROC_UNLOCK(p);
1454 continue;
1455 }

--- 1660 unchanged lines hidden ---
1448 /*
1449 * Skip embryonic processes.
1450 */
1451 PROC_LOCK(p);
1452 if (p->p_state == PRS_NEW) {
1453 PROC_UNLOCK(p);
1454 continue;
1455 }

--- 1660 unchanged lines hidden ---