##// END OF EJS Templates
hghave: avoid a deadlock reading the child process's output...
Matt Harbison -
r38205:6fb76897 stable
parent child Browse files
Show More
@@ -98,8 +98,8 b' def matchoutput(cmd, regexp, ignorestatu'
98 if e.errno != errno.ENOENT:
98 if e.errno != errno.ENOENT:
99 raise
99 raise
100 ret = -1
100 ret = -1
101 ret = p.wait()
101 s = p.communicate()[0]
102 s = p.stdout.read()
102 ret = p.returncode
103 return (ignorestatus or not ret) and r.search(s)
103 return (ignorestatus or not ret) and r.search(s)
104
104
105 @check("baz", "GNU Arch baz client")
105 @check("baz", "GNU Arch baz client")
General Comments 0
You need to be logged in to leave comments. Login now