This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: setproctitle()
- From: Ulrich Drepper <drepper at redhat dot com>
- To: Timo Sirainen <tss at iki dot fi>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 01 Oct 2009 00:33:56 -0700
- Subject: Re: setproctitle()
- References: <1254344131.4794.1061.camel@timo-desktop>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Timo Sirainen wrote:
> (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.)
And why do you think a library function can do this any better?
There is no general way to do this in any useful way which doesn't have
arbitrary low limits etc. Add the appropriate kernel functionality and
then we can talk.
- --
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkrEW2QACgkQ2ijCOnn/RHSI2QCgij/n1MSJ4fx7H0nZaIkapMJQ
ydMAn25ukkScPXka+ePQgzpYvFZPTKrW
=/mKg
-----END PGP SIGNATURE-----