Skip to content

Commit

Permalink
Merge pull request #32 from adzenith/patch-1
Browse files Browse the repository at this point in the history
Add timeout to rc communicate call
  • Loading branch information
rampage644 authored Mar 2, 2017
2 parents a024933 + 20ad3da commit 1ee68b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtags.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def run_rc(switches, input=None, *args):
stdout=subprocess.PIPE,
stdin=subprocess.PIPE)
print(' '.join(p.args))
return p.communicate(input=input)
return p.communicate(input=input, timeout=.5)

# TODO refactor somehow to remove global vars

Expand Down

0 comments on commit 1ee68b8

Please sign in to comment.