This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setproctitle()


On Wed, Sep 30, 2009 at 04:55:31PM -0400, Timo Sirainen wrote:
> BSDs have:
> 
> void setproctitle(const char *fmt, ...);
> 
> to change the process title (in ps output). Could this also be added to
> glibc? Or would it be better done by adding a new syscall to Linux
> kernel?
> 
> (I know there's a way to already mess around with argv and environ to
> implement it, but it seems pretty dangerous so I haven't dared to use it
> on my actual programs.)

The method you call pretty dangerous is used here and there for a long
time already.  I even wrote a library about 5 years ago that implements
setproctitle() for GNU/Linux, see
http://git.altlinux.org/people/ldv/packages/?p=setproctitle.git


-- 
ldv

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]