Skip to content

Commit

Permalink
doc: don't wait output for not command input
Browse files Browse the repository at this point in the history
e.g. loaded data "[...]" is not command input.
  • Loading branch information
kou committed Apr 27, 2012
1 parent eee294f commit e3f026a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/update_execution_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def execmd(command, fout):
groonga_process.stdin.flush()
if fout:
fout.write(formatted_command_line + " ")
is_command = re.match("[a-z]", command)
if not is_command:
return
output_buffer = ""
while True:
out = select([groonga_process.stdout], [], [], 0.2)
Expand Down

0 comments on commit e3f026a

Please sign in to comment.