in reply to Re: How do I change my program's name under ps? ($0='abc' is messed up)
in thread How do I change my program's name under ps? ($0='abc' is messed up)

\0 doesn't help on linux... On FreeBSD it seems to work with or without the \0 (in addition to displaying the original process name).

If the memory is pre-allocated, then do I have to worry about overflowing it?

  • Comment on Re: Re: How do I change my program's name under ps? ($0='abc' is messed up)

Replies are listed 'Best First'.
Re: Re: Re: How do I change my program's name under ps? ($0='abc' is messed up)
by rpc (Monk) on May 30, 2001 at 04:36 UTC
    Nope, you don't have to worry about overflowing it in Perl. You do however, when dealing with argv[0] in C, etc.