Disable buffer for subprocess pipe objects

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1491009 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2013-06-08 17:00:25 +00:00
parent 495a5239b6
commit fdff37f36e
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ def run(command):
raise RuntimeError(msg)
def runAndSendGPGPassword(command, password):
p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, stdin=subprocess.PIPE)
p = subprocess.Popen(command, shell=True, bufsize=0, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, stdin=subprocess.PIPE)
f = open(LOG, 'ab')
while True:
line = p.stdout.readline()