Commit b53b8522 authored by Vangelis Koukis's avatar Vangelis Koukis

Only set executable name with python-setproctitle

Cannot set individual values for arguments using python-setproctitle.
See https://code.google.com/p/py-setproctitle/issues/detail?id=23&can=1.
parent 856268f2
......@@ -993,8 +993,12 @@ if __name__ == "__main__":
logger.addHandler(handler)
# Rename this process so 'ps' output looks like
# this is a native executable
setproctitle.setproctitle(" ".join(sys.argv))
# this is a native executable.
# NOTE: due to a bug in python-setproctitle, one cannot yet
# set individual values for command-line arguments, so only show
# the name of the executable instead.
# setproctitle.setproctitle("\x00".join(sys.argv))
setproctitle.setproctitle(sys.argv[0])
if opts.daemonize:
pidfile = daemon.pidlockfile.TimeoutPIDLockFile(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment