[Groonga-commit] droonga/droonga-engine at 81128e7 [master] droonga-engine: don't restart for unexpected exit

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 22 11:30:50 JST 2014


Kouhei Sutou	2014-04-22 11:30:50 +0900 (Tue, 22 Apr 2014)

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

  Message:
    droonga-engine: don't restart for unexpected exit

  Modified files:
    lib/droonga/engine/command/droonga_engine.rb

  Modified: lib/droonga/engine/command/droonga_engine.rb (+3 -1)
===================================================================
--- lib/droonga/engine/command/droonga_engine.rb    2014-04-22 11:25:56 +0900 (7071519)
+++ lib/droonga/engine/command/droonga_engine.rb    2014-04-22 11:30:50 +0900 (7cc993f)
@@ -136,7 +136,9 @@ module Droonga
             end
             while running
               service_pid = run_service
-              Process.waitpid(service_pid)
+              _, status = Process.waitpid2(service_pid)
+              break if status.nil?
+              break unless status.success?
             end
 
             true
-------------- next part --------------
HTML����������������������������...
Download 



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