Massive reworking of messages to make debugging easier along with some code cleaning...
[theonering] / src / util / linux.py
index 43cbe2d..4837f2a 100644 (file)
@@ -6,8 +6,8 @@ import logging
 
 def set_process_name(name):
        try: # change process name for killall
-          import ctypes
-          libc = ctypes.CDLL('libc.so.6')
-          libc.prctl(15, name, 0, 0, 0)
+               import ctypes
+               libc = ctypes.CDLL('libc.so.6')
+               libc.prctl(15, name, 0, 0, 0)
        except Exception, e:
-          logging.warning('Unable to set processName: %s" % e')
+               logging.warning('Unable to set processName: %s" % e')