I've always used proctitle, which can rewrite the
sys.argv, aka, char**argv array. And was quite aggravated that I didn't know how to change the process command name, which is what killall uses to kill processes.So after being shown how to do it in mono, I found the docs, wrote it in C, put it in proctitle's _proctitle.c and created a patch for 0.0.2.
Now I can stop using
pkill -f and go back to using killall. :)technorati: python programming
1 comments:
The only problem here is that proctitle has a limit of 7 chars for the first argument (ie, for the program name)... That's prohibitively small...
Post a Comment