diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-01-19 17:48:50 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-01-19 17:50:05 +0100 |
commit | c580840d772937d26fd5ed44d6fcc9dbead63426 (patch) | |
tree | a0cfcdcd1392a0098006650c6b15ea80e0a3307b | |
parent | 0975b343f06e504579455985e1e6ab4947b0cd4c (diff) | |
download | poezio-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-x | src/daemon.py | 2 |
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 |