Process 1, ppid != 0

Chris Wedgwood (chris@cyphercom.com)
Sun, 9 Feb 1997 03:45:58 -0500


Something odd just happened. I typed 'pstree -up' and was given what looked
like a 'recursive tree'.

Anyhow, I checked and for some reason, process 1 (init) thinks its ppid is 1
(itself). I've never seen this before.

This occurred under Linux 2.0.29. I have another 2.0.29 box which doesn't do
this. (ie. the ppid for process 1 is 0).

Any ideas?

-Chris

--------------------

blort:~# cat /proc/1/status
Name: init
State: S (sleeping)
Pid: 1
PPid: 1 <<-- Weird?
Uid: 0 0 0 0
Gid: 0 0 0 0
VmSize: 780 kB
VmLck: 0 kB
VmRSS: 324 kB
VmData: 208 kB
VmStk: 12 kB
VmExe: 20 kB
VmLib: 504 kB
SigPnd: 00000000
SigBlk: 00000000
SigIgn: d7f0defc
SigCgt: 280b2003
blort:/proc/1#