[Groonga-commit] groonga/groonga at 9faa4b3 [master] doc: support empty read case for shutdown

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Mar 13 12:57:40 JST 2016


Kouhei Sutou	2016-03-13 12:57:40 +0900 (Sun, 13 Mar 2016)

  New Revision: 9faa4b31a7bbab13b64f3c2285cdf45fab4229a4
  https://github.com/groonga/groonga/commit/9faa4b31a7bbab13b64f3c2285cdf45fab4229a4

  Message:
    doc: support empty read case for shutdown

  Modified files:
    doc/update_execution_example.py

  Modified: doc/update_execution_example.py (+2 -1)
===================================================================
--- doc/update_execution_example.py    2016-03-13 12:57:17 +0900 (aacf6eb)
+++ doc/update_execution_example.py    2016-03-13 12:57:40 +0900 (94bc024)
@@ -100,10 +100,11 @@ def execmd(command, fout):
     timeout = rest_timeout
     if len(out[0]):
       char = groonga_process.stdout.read(1)
-      if char is None:
+      if char is None or char == '':
         stdout.write(output_buffer)
         if fout:
           fout.write(output_buffer)
+        break
       else:
         output_buffer += char
         if char == '\n':
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index