[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: proced: ppid of process ID 0 can be 0
From: |
Giorgos Keramidas |
Subject: |
Re: proced: ppid of process ID 0 can be 0 |
Date: |
Mon, 22 Dec 2008 20:03:04 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) |
On Mon, 22 Dec 2008 11:43:15 +0100, "Juanma Barranquero" <address@hidden> wrote:
> On Mon, Dec 22, 2008 at 09:54, Harald Hanche-Olsen <address@hidden> wrote:
>
>> FWIW, on FreeBSD there is process 0 (the swapper), and various kernel
>> processes have process 0 as their parent.
>
> There's no problem with a process having ppid = 0. But there's a
> problem with processes having ppid = pid. Is that the case in FreeBSD?
Yes this is the case:
$ ps -xao pid,ppid,args | sed -n -e 1p -e /sed/d -e /kernel/p
PID PPID COMMAND
0 0 [kernel]
$
There are several processes with ppid == 0, and process 0 has pid == ppid:
PID PPID COMMAND
0 0 [kernel]
1 0 /sbin/init --
2 0 [g_event]
3 0 [g_up]
4 0 [g_down]
5 0 [xpt_thrd]
6 0 [sctp_iterator]
7 0 [pfpurge]
8 0 [pagedaemon]
9 0 [vmdaemon]
10 0 [audit]
11 0 [idle]
12 0 [intr]
13 0 [yarrow]
14 0 [usb0]
15 0 [usbtask-hc]
16 0 [usbtask-dr]
17 0 [usb1]
18 0 [usb2]
19 0 [usb3]
20 0 [usb4]
21 0 [usb5]
22 0 [usb6]
23 0 [acpi_thermal]
24 0 [acpi_cooling0]
25 0 [pagezero]
26 0 [bufdaemon]
27 0 [vnlru]
28 0 [syncer]
29 0 [softdepflush]
1019 0 [md0]
- Re: proced: ppid of process ID 0 can be 0, (continued)
- Re: proced: ppid of process ID 0 can be 0, Stefan Monnier, 2008/12/21
- Re: proced: ppid of process ID 0 can be 0, Eli Zaretskii, 2008/12/21
- Re: proced: ppid of process ID 0 can be 0, Miles Bader, 2008/12/21
- Re: proced: ppid of process ID 0 can be 0, Eli Zaretskii, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Harald Hanche-Olsen, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Juanma Barranquero, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Harald Hanche-Olsen, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0,
Giorgos Keramidas <=
- Re: proced: ppid of process ID 0 can be 0, Andreas Schwab, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Eli Zaretskii, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, David De La Harpe Golden, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Andreas Schwab, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Stefan Monnier, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Eli Zaretskii, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Stefan Monnier, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Eli Zaretskii, 2008/12/22
- Re: proced: ppid of process ID 0 can be 0, Roland Winkler, 2008/12/23
- Re: proced: ppid of process ID 0 can be 0, Stefan Monnier, 2008/12/23