[wmlunits] change the process names of wmlunits to 'wmlunits'...

...so it can be killed more easily
This commit is contained in:
Elias Pschernig 2009-09-17 16:16:28 +00:00
parent dceeede51b
commit aaf2850371

View File

@ -942,6 +942,15 @@ def output(isocode):
return stuff
if __name__ == '__main__':
# We change the process name to "wmlunits"
try:
import ctypes
libc = ctypes.CDLL("libc.so.6")
libc.prctl(15, "wmlunits", 0, 0, 0)
except: # oh well...
pass
global options
global image_collector
import optparse