Author vstinner
Recipients ezio.melotti, flox, jnoller, pitrou, schmir, tarek, vstinner
Date 2010-03-11.02:18:46
SpamBayes Score 0.000807908
Marked as misclassified No
Message-id <>
Twisted uses the following code (on UNIX-like OS):

def launchWithName(name):
    if name and name != sys.argv[0]:
        exe = os.path.realpath(sys.executable)
        log.msg('Changing process name to ' + name)
        os.execv(exe, [name, sys.argv[0], '--originalname'] + sys.argv[1:])

Twisted doesn't care if sys.executable is invalid when argv[0] has been changed. sys.executable is only used to change the process name (sys.executable is used before argv[0] is modified).
Date User Action Args
2010-03-11 02:18:47vstinnersetrecipients: + vstinner, pitrou, schmir, tarek, jnoller, ezio.melotti, flox
2010-03-11 02:18:47vstinnersetmessageid: <>
2010-03-11 02:18:46vstinnerlinkissue7774 messages
2010-03-11 02:18:46vstinnercreate