YUKI Hiroshi
null+****@clear*****
Tue Jul 22 20:26:49 JST 2014
YUKI Hiroshi 2014-07-22 20:26:49 +0900 (Tue, 22 Jul 2014) New Revision: 27e8bb92500815271be5538231d495cf02f3055f https://github.com/droonga/droonga-engine/commit/27e8bb92500815271be5538231d495cf02f3055f Message: Create new process group to detach stdin and stdout from the current process Modified files: lib/droonga/data_absorber.rb Modified: lib/droonga/data_absorber.rb (+2 -2) =================================================================== --- lib/droonga/data_absorber.rb 2014-07-22 19:57:23 +0900 (e1c975f) +++ lib/droonga/data_absorber.rb 2014-07-22 20:26:49 +0900 (7ea3cfa) @@ -39,9 +39,9 @@ module Droonga drndump_command_line = [drndump] + drndump_options client_command_line = [client] + client_options - Open3.popen3(*drndump_command_line) do |dump_in, dump_out, dump_error, dump_thread| + Open3.popen3(*drndump_command_line, :pgroup => true) do |dump_in, dump_out, dump_error, dump_thread| dump_in.close - Open3.popen3(*client_command_line) do |client_in, client_out, client_error, client_thread| + Open3.popen3(*client_command_line, :pgroup => true) do |client_in, client_out, client_error, client_thread| client_out.close dump_out.each do |dump| yield dump if block_given? -------------- next part -------------- HTML����������������������������...Download