All of lore.kernel.org
 help / color / mirror / Atom feed
* "ps ax" shows init [
@ 2001-11-07 16:01 Yaroslav Popovitch
  2001-11-07 16:10 ` Miquel van Smoorenburg
  0 siblings, 1 reply; 3+ messages in thread
From: Yaroslav Popovitch @ 2001-11-07 16:01 UTC (permalink / raw)
  To: linux-kernel


doing "ps ax" get such msg for kernel-2.4.9:
That is the same for kernel-2.4.12.Sometimes it is shown as it should be.
Is this a bug of kernel? It seems to be..

  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:06 init [    

Cheers,YP



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: "ps ax" shows init [
  2001-11-07 16:01 "ps ax" shows init [ Yaroslav Popovitch
@ 2001-11-07 16:10 ` Miquel van Smoorenburg
  2001-11-07 22:09   ` Phil Howard
  0 siblings, 1 reply; 3+ messages in thread
From: Miquel van Smoorenburg @ 2001-11-07 16:10 UTC (permalink / raw)
  To: linux-kernel

In article <Pine.LNX.4.10.10111071747430.31120-100000@ares.sot.com>,
Yaroslav Popovitch  <yp@sot.com> wrote:
>doing "ps ax" get such msg for kernel-2.4.9:
>That is the same for kernel-2.4.12.Sometimes it is shown as it should be.
>Is this a bug of kernel? It seems to be..
>
>  PID TTY      STAT   TIME COMMAND
>    1 ?        S      0:06 init [    

It's because init doesn't have enough space in argv[] to change it's
process title. There are a number of causes for this, one indirect
one is pressing 'enter' at the 'LILO boot: ' prompt.

Mike.
-- 
"Only two things are infinite, the universe and human stupidity,
 and I'm not sure about the former" -- Albert Einstein.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: "ps ax" shows init [
  2001-11-07 16:10 ` Miquel van Smoorenburg
@ 2001-11-07 22:09   ` Phil Howard
  0 siblings, 0 replies; 3+ messages in thread
From: Phil Howard @ 2001-11-07 22:09 UTC (permalink / raw)
  To: linux-kernel

Miquel van Smoorenburg wrote:

> In article <Pine.LNX.4.10.10111071747430.31120-100000@ares.sot.com>,
> Yaroslav Popovitch  <yp@sot.com> wrote:
> >doing "ps ax" get such msg for kernel-2.4.9:
> >That is the same for kernel-2.4.12.Sometimes it is shown as it should be.
> >Is this a bug of kernel? It seems to be..
> >
> >  PID TTY      STAT   TIME COMMAND
> >    1 ?        S      0:06 init [    
> 
> It's because init doesn't have enough space in argv[] to change it's
> process title. There are a number of causes for this, one indirect
> one is pressing 'enter' at the 'LILO boot: ' prompt.

Perhaps a way around this frequent problem is to make execve() always
reserve a certain minimum amount of space in argv[] even if it is not
filled in with anything.  Then instead a "brick wall" being set at
the end of the space originally used, it can be set at max(space used,
minimum reserved).  This is still userland space, right?  What would
be a reasonable figure for minimum reserved?  Or does ld-linux go
grabbing space right after the end of argv[]?

-- 
-----------------------------------------------------------------
| Phil Howard - KA9WGN |   Dallas   | http://linuxhomepage.com/ |
| phil-nospam@ipal.net | Texas, USA | http://phil.ipal.org/     |
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-11-07 22:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-07 16:01 "ps ax" shows init [ Yaroslav Popovitch
2001-11-07 16:10 ` Miquel van Smoorenburg
2001-11-07 22:09   ` Phil Howard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.