summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-01-19 17:48:50 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-01-19 17:50:05 +0100
commitc580840d772937d26fd5ed44d6fcc9dbead63426 (patch)
treea0cfcdcd1392a0098006650c6b15ea80e0a3307b
parent0975b343f06e504579455985e1e6ab4947b0cd4c (diff)
downloadpoezio-c580840d772937d26fd5ed44d6fcc9dbead63426.tar.gz
poezio-c580840d772937d26fd5ed44d6fcc9dbead63426.tar.bz2
poezio-c580840d772937d26fd5ed44d6fcc9dbead63426.tar.xz
poezio-c580840d772937d26fd5ed44d6fcc9dbead63426.zip
Properly ignore stderr and redirect stdout when execute a command
fix #2933
-rwxr-xr-xsrc/daemon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon.py b/src/daemon.py
index 11dfb51a..395054a7 100755
--- a/src/daemon.py
+++ b/src/daemon.py
@@ -65,7 +65,7 @@ class Executor(threading.Thread):
log.error('Could not open redirection file: %s', self.filename, exc_info=True)
return
try:
- subprocess.call(self.command)
+ subprocess.call(self.command, stdout=stdout, stderr=DEVNULL)
except:
if self.remote:
import traceback