From e1808a8455aadc9fac300c68e397b712a030ae29 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 25 Nov 2014 16:58:26 +0100 Subject: Parse command arguments using a decorator and make things more consistent Avoid surprises with some commands accepting quoted arguments and some other not. fix #2555 --- src/daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/daemon.py') diff --git a/src/daemon.py b/src/daemon.py index 395054a7..7f66558c 100755 --- a/src/daemon.py +++ b/src/daemon.py @@ -56,6 +56,7 @@ class Executor(threading.Thread): command.pop(-1) def run(self): + print("executing %s" % (self.command)) log.debug('executing %s', self.command) stdout = DEVNULL if self.filename: @@ -65,7 +66,7 @@ class Executor(threading.Thread): log.error('Could not open redirection file: %s', self.filename, exc_info=True) return try: - subprocess.call(self.command, stdout=stdout, stderr=DEVNULL) + subprocess.call(self.command) except: if self.remote: import traceback -- cgit v1.2.3