[Groonga-commit] droonga/droonga-engine at d954235 [master] Close output I/O after Messages::FINISH is completely written

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Sep 5 14:22:40 JST 2014


YUKI Hiroshi	2014-09-05 14:22:40 +0900 (Fri, 05 Sep 2014)

  New Revision: d954235b69dde0b63d6b42bd46fbf3e41005aad5
  https://github.com/droonga/droonga-engine/commit/d954235b69dde0b63d6b42bd46fbf3e41005aad5

  Message:
    Close output I/O after Messages::FINISH is completely written

  Modified files:
    lib/droonga/worker_process_agent.rb

  Modified: lib/droonga/worker_process_agent.rb (+3 -1)
===================================================================
--- lib/droonga/worker_process_agent.rb    2014-09-05 12:02:39 +0900 (d48709b)
+++ lib/droonga/worker_process_agent.rb    2014-09-05 14:22:40 +0900 (fa75b39)
@@ -44,7 +44,9 @@ module Droonga
       if @output
         @output, output = nil, @output
         output.write(Messages::FINISH)
-        output.close
+        output.on_write_complete do
+          output.close
+        end
       end
       if @input
         @input, input = nil, @input
-------------- next part --------------
HTML����������������������������...
Download 



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