Skip to content

Commit d3f3e6a

Browse files
authored
redirect subprocess output to /dev/null rather than 'PIPE' (#153)
1 parent 717ded7 commit d3f3e6a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pyperf/_system.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ def write_text(filename, content):
3737
def run_cmd(cmd):
3838
try:
3939
# ignore stdout and stderr
40-
# FIXME: redirect output to /dev/null
4140
proc = subprocess.Popen(cmd,
42-
stdout=subprocess.PIPE,
43-
stderr=subprocess.PIPE)
41+
stdout=subprocess.DEVNULL,
42+
stderr=subprocess.DEVNULL)
4443
except OSError as exc:
4544
if exc.errno == errno.ENOENT:
4645
return 127

0 commit comments

Comments
 (0)