Skip to content

Commit

Permalink
redirect subprocess output to /dev/null rather than 'PIPE'
Browse files Browse the repository at this point in the history
  • Loading branch information
GLEF1X committed Jan 8, 2023
1 parent f857c5f commit 074fd99
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyperf/_system.py
Expand Up @@ -37,10 +37,9 @@ def write_text(filename, content):
def run_cmd(cmd):
try:
# ignore stdout and stderr
# FIXME: redirect output to /dev/null
proc = subprocess.Popen(cmd,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL)
except OSError as exc:
if exc.errno == errno.ENOENT:
return 127
Expand Down

0 comments on commit 074fd99

Please sign in to comment.