This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author marcelo_fernandez
Recipients amaury.forgeotdarc, asksol, elprans, exarkun, flub, giampaolo.rodola, iElectric, loewis, marcelo_fernandez, piro, serverhorror
Date 2009-12-06.17:26:31
SpamBayes Score 7.527749e-09
Marked as misclassified No
Message-id <1260120393.85.0.372535414759.issue5672@psf.upfronthosting.co.za>
In-reply-to
Content
Great, piro!

I'm taking a look at it, and it seems to use setproctitle() in BSD, and 
writes over the argv array "in most Sys-V like systems"; this includes 
Linux?

My question is because I think there's a better and supported method for 
Linux, that is, using prctl [1]. I read somewhere that changing argv 
causes some inconsistencies between programs who read /sys files, /proc 
files... or I don't remember what, but it is, in fact, not the 
*recommended* way. Prctl is. :-)

PR_SET_NAME and PR_GET_NAME parameters in prctl.h:
[1] http://www.kernel.org/doc/man-pages/online/pages/man2/prctl.2.html

Could this module be altered to use a prctl call in Linux (>2.6.9)?

Thanks a lot.
History
Date User Action Args
2009-12-06 17:26:34marcelo_fernandezsetrecipients: + marcelo_fernandez, loewis, exarkun, amaury.forgeotdarc, giampaolo.rodola, flub, piro, serverhorror, iElectric, elprans, asksol
2009-12-06 17:26:33marcelo_fernandezsetmessageid: <1260120393.85.0.372535414759.issue5672@psf.upfronthosting.co.za>
2009-12-06 17:26:32marcelo_fernandezlinkissue5672 messages
2009-12-06 17:26:31marcelo_fernandezcreate