[Groonga-commit] droonga/droonga-engine at 206e951 [master] droonga-engine-service: support non-zero exit status on failure

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Wed May 28 12:09:29 JST 2014


Kouhei Sutou	2014-05-28 12:09:29 +0900 (Wed, 28 May 2014)

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

  Message:
    droonga-engine-service: support non-zero exit status on failure

  Modified files:
    lib/droonga/command/droonga_engine_service.rb

  Modified: lib/droonga/command/droonga_engine_service.rb (+3 -1)
===================================================================
--- lib/droonga/command/droonga_engine_service.rb    2014-05-28 11:43:24 +0900 (e7f5766)
+++ lib/droonga/command/droonga_engine_service.rb    2014-05-28 12:09:29 +0900 (649f38b)
@@ -51,10 +51,12 @@ module Droonga
         PluginLoader.load_all
 
         control_write_io = IO.new(@control_write_fd)
+        success = true
         begin
           run_services
         rescue
           logger.exception("failed to run services", $!)
+          success = false
         ensure
           unless @control_write_closed
             control_write_io.write(Messages::FINISH)
@@ -62,7 +64,7 @@ module Droonga
           end
         end
 
-        true
+        success
       end
 
       private
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る