parent
ba43156363
commit
982086dbe9
1 changed files with 2 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ proc opGorge*(cmd, input, cache: string, info: TLineInfo; conf: ConfigRef): (str
|
||||||
p.inputStream.write(input)
|
p.inputStream.write(input)
|
||||||
p.inputStream.close()
|
p.inputStream.close()
|
||||||
result = p.readOutput
|
result = p.readOutput
|
||||||
|
p.close()
|
||||||
readSuccessful = true
|
readSuccessful = true
|
||||||
# only cache successful runs:
|
# only cache successful runs:
|
||||||
if result[1] == 0:
|
if result[1] == 0:
|
||||||
|
|
@ -54,5 +55,6 @@ proc opGorge*(cmd, input, cache: string, info: TLineInfo; conf: ConfigRef): (str
|
||||||
p.inputStream.write(input)
|
p.inputStream.write(input)
|
||||||
p.inputStream.close()
|
p.inputStream.close()
|
||||||
result = p.readOutput
|
result = p.readOutput
|
||||||
|
p.close()
|
||||||
except IOError, OSError:
|
except IOError, OSError:
|
||||||
result = ("", -1)
|
result = ("", -1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue