def SetProcessName(newname):
 global _process_name
 _process_name = newname
 try:
  from ctypes import cdll, byref, create_string_buffer
  libc = cdll.LoadLibrary('libc.so.6')
  buff = create_string_buffer((len(newname) + 1))
  buff.value = newname
  libc.prctl(15, byref(buff), 0, 0, 0)
 except:
  pass

def SetProcessName ( newname ) : global _process_name _process_name = newname try : from ctypes import cdll , byref , create_string_buffer libc = cdll . LoadLibrary ( 'libc.so.6' ) buff = create_string_buffer ( ( len ( newname ) + 1 ) ) buff . value = newname libc . prctl ( 15 , byref ( buff ) , 0 , 0 , 0 ) except : pass
attempts to set the process name .