[Groonga-commit] droonga/droonga-engine at a6edac7 [master] droonga-engine: return non success exit status for unexpected exit

Back to archive index

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


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

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

  Message:
    droonga-engine: return non success exit status for unexpected exit

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

  Modified: lib/droonga/engine/command/droonga_engine.rb (+10 -3)
===================================================================
--- lib/droonga/engine/command/droonga_engine.rb    2014-04-22 11:34:40 +0900 (663ab55)
+++ lib/droonga/engine/command/droonga_engine.rb    2014-04-22 11:37:11 +0900 (754546e)
@@ -167,14 +167,21 @@ module Droonga
               running = false
             end
 
+            succeeded = true
             while running
               service_pid = run_service
               _, status = Process.waitpid2(service_pid)
-              break if status.nil?
-              break unless status.success?
+              if status.nil?
+                succeeded = false
+                break
+              end
+              unless status.success?
+                succeeded = false
+                break
+              end
             end
 
-            true
+            succeeded
           end
         end
 
-------------- next part --------------
HTML����������������������������...
Download 



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