diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-11-25 16:58:26 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-11-25 17:07:45 +0100 |
commit | e1808a8455aadc9fac300c68e397b712a030ae29 (patch) | |
tree | df5ad7cf84a8e9faa4cd018189bf585ee9d7bdeb /src/daemon.py | |
parent | 61b5c6a91e58b81811bcbf8e789b0bf112d3a416 (diff) | |
download | poezio-e1808a8455aadc9fac300c68e397b712a030ae29.tar.gz poezio-e1808a8455aadc9fac300c68e397b712a030ae29.tar.bz2 poezio-e1808a8455aadc9fac300c68e397b712a030ae29.tar.xz poezio-e1808a8455aadc9fac300c68e397b712a030ae29.zip |
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
Diffstat (limited to 'src/daemon.py')
-rwxr-xr-x | src/daemon.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |