Revision 6c9c95d8 snf-cyclades-app/synnefo/logic/dispatcher.py

b/snf-cyclades-app/synnefo/logic/dispatcher.py
57 57
    from daemon import pidfile as pidlockfile
58 58
except:
59 59
    from daemon import pidlockfile
60
import setproctitle
60 61

  
61 62
from synnefo.lib.amqp import AMQPClient
62 63
from synnefo.logic import callbacks
......
298 299
def main():
299 300
    (opts, args) = parse_arguments(sys.argv[1:])
300 301

  
302
    # Rename this process so 'ps' output looks like this is a native
303
    # executable.  Can not seperate command-line arguments from actual name of
304
    # the executable by NUL bytes, so only show the name of the executable
305
    # instead.  setproctitle.setproctitle("\x00".join(sys.argv))
306
    setproctitle.setproctitle(sys.argv[0])
307

  
301 308
    # Init the global variables containing the queues
302 309
    _init_queues()
303 310

  

Also available in: Unified diff