Kouhei Sutou
null+****@clear*****
Wed Dec 11 18:46:52 JST 2013
Kouhei Sutou 2013-12-11 18:46:52 +0900 (Wed, 11 Dec 2013) New Revision: fa45fe28abc3954ada1c51fe5d4fe699df1eaf61 https://github.com/droonga/fluent-plugin-droonga/commit/fa45fe28abc3954ada1c51fe5d4fe699df1eaf61 Message: Fix a bug that message pusher raises an exception at shutdown We should get socket path before close the UNIX domain socket server. Modified files: lib/droonga/message_pusher.rb Modified: lib/droonga/message_pusher.rb (+2 -1) =================================================================== --- lib/droonga/message_pusher.rb 2013-12-11 18:39:48 +0900 (cccadd3) +++ lib/droonga/message_pusher.rb 2013-12-11 18:46:52 +0900 (2ca94b5) @@ -38,8 +38,9 @@ module Droonga def shutdown $log.trace("#{log_tag}: shutdown: start") + socket_path = @raw_receiver.path @raw_receiver.close - FileUtils.rm_f(@raw_receiver.path) + FileUtils.rm_f(socket_path) @loop.stop @loop_thread.join $log.trace("#{log_tag}: shutdown: done") -------------- next part -------------- HTML����������������������������...Download