close_fds

This commit is contained in:
j 2015-04-24 18:39:16 +02:00
parent f814049805
commit 5654d47b58

View file

@ -112,7 +112,8 @@ def video(path, height=96, info=None, framerate=FPS):
p = subprocess.Popen(cmd, p = subprocess.Popen(cmd,
bufsize=bufsize, bufsize=bufsize,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=open('/dev/null', 'w')) stderr=open('/dev/null', 'w'),
close_fds=True)
first = True first = True
while True: while True:
@ -151,7 +152,8 @@ def audio(path, info=None, samplerate=48000, framerate=FPS):
p = subprocess.Popen(cmd, p = subprocess.Popen(cmd,
bufsize=bufsize, bufsize=bufsize,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=open('/dev/null', 'w')) stderr=open('/dev/null', 'w'),
close_fds=True)
chunk = int(nbytes / framerate) chunk = int(nbytes / framerate)
first = True first = True