Commit d58c66dc authored by ale's avatar ale

oops, do not attempt to read stdin...

parent 1cba4b4b
......@@ -19,9 +19,9 @@ def clamscan(files):
def _flush():
pipe = subprocess.Popen(state['buf'],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=devnull)
for line in pipe.stdin:
for line in pipe.stdout:
m = row_pattern.match(line.rstrip('\n'))
if m:
results.append({'path': m.group(1), 'virus': m.group(2)})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment