pylint: fix W1509 subprocess-popen-preexec-fn

parent 0cf6bddd
......@@ -250,7 +250,7 @@ def run_daemon(cfg, environ):
logging.getLogger('deckard.daemon.%s.argv' % name).debug('%s', args)
proc = subprocess.Popen(args, stdout=daemon_log_file, stderr=subprocess.STDOUT,
cwd=cfg['dir'], preexec_fn=os.setsid, env=environ)
cwd=cfg['dir'], env=environ, start_new_session=True)
except subprocess.CalledProcessError:
logger = logging.getLogger('deckard.daemon_log.%s' % name)
logger.exception("Can't start '%s'", args)
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