You are not logged in.

#1 2009-09-17 02:54:52

eirika
Member
From: New York
Registered: 2009-09-14
Posts: 65

[SOLVED]Quick question: why init process shows up as "ini" in ps?

After some recent update I just noticed this:

$ ps -ef|head -n 3
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 13:52 ?        00:00:00 ini 
root         2     0  0 13:52 ?        00:00:00 [kthreadd]

On the other hand if I do

$ ps -ely|head -n 3
S   UID   PID  PPID  C PRI  NI   RSS    SZ WCHAN  TTY          TIME CMD
S     0     1     0  0  80   0   632   949 ?      ?        00:00:00 init
S     0     2     0  0  75  -5     0     0 ?      ?        00:00:00 kthreadd

So why ps shows this process as "ini" in the first example and "init" in the second?

ps version is 3.2.8:

$ ps -V
procps version 3.2.8

Last edited by eirika (2009-09-17 16:35:42)

Offline

#2 2009-09-17 09:05:42

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED]Quick question: why init process shows up as "ini" in ps?

hi, i too have the same issue, though i never had time to investigate it. will keep a look on this thread, too.

Offline

#3 2009-09-17 13:06:48

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [SOLVED]Quick question: why init process shows up as "ini" in ps?

How weird. It's like that for me too, and I never saw such a thing before.

Offline

#4 2009-09-17 13:13:11

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: [SOLVED]Quick question: why init process shows up as "ini" in ps?

It's working fine here (Arch-x86_64)

ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 09:40 ?        00:00:00 init [5]

ps -V
procps version 3.2.8

(lambda ())

Offline

#5 2009-09-17 15:23:55

eirika
Member
From: New York
Registered: 2009-09-14
Posts: 65

Re: [SOLVED]Quick question: why init process shows up as "ini" in ps?

I think this interesting output doesn't have anything to do with procps:

$ cat /proc/1/cmdline
ini$

Last edited by eirika (2009-09-17 15:30:57)

Offline

#6 2009-09-17 15:44:25

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: [SOLVED]Quick question: why init process shows up as "ini" in ps?

Afaik this is a klibc bug.

Offline

#7 2009-09-17 16:30:39

eirika
Member
From: New York
Registered: 2009-09-14
Posts: 65

Re: [SOLVED]Quick question: why init process shows up as "ini" in ps?

Pierre wrote:

Afaik this is a klibc bug.

That helps. And thank you all for helping me identifying the problem. If that's true then
I think the solution is beyond the scope of this forum. As it has been solved in some sense
I'll mark it as solved soon.

Offline

#8 2009-09-17 16:38:50

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: [SOLVED]Quick question: why init process shows up as "ini" in ps?

Relevant bug report: FS#15362.

Offline

Board footer

Powered by FluxBB