##// END OF EJS Templates
util: allow to specify buffer size in popen4...
Pierre-Yves David -
r25245:504ef9c4 default
parent child Browse files
Show More
@@ -247,8 +247,8 b' def popen3(cmd, env=None, newlines=False'
247 stdin, stdout, stderr, p = popen4(cmd, env, newlines)
247 stdin, stdout, stderr, p = popen4(cmd, env, newlines)
248 return stdin, stdout, stderr
248 return stdin, stdout, stderr
249
249
250 def popen4(cmd, env=None, newlines=False):
250 def popen4(cmd, env=None, newlines=False, bufsize=-1):
251 p = subprocess.Popen(cmd, shell=True, bufsize=-1,
251 p = subprocess.Popen(cmd, shell=True, bufsize=bufsize,
252 close_fds=closefds,
252 close_fds=closefds,
253 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
253 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
254 stderr=subprocess.PIPE,
254 stderr=subprocess.PIPE,
General Comments 0
You need to be logged in to leave comments. Login now