mirror of https://github.com/apache/lucene.git
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:
parent
495a5239b6
commit
fdff37f36e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue