Day: August 30, 2006

Change process name in python (POSIX only, using dl module)

>>> import dl
>>> libc = dl.open(‘/lib/libc.so.6’)
0
>>> libc.call(‘prctl’, 15, ‘CRAP’, 0, 0, 0)
0
now our process is called CRAP

Advertisements