Skip to content

Commit

Permalink
supervisor: Call File.umask to follow serverengine routine. fix #2984
Browse files Browse the repository at this point in the history
Signed-off-by: Masahiro Nakagawa <[email protected]>
  • Loading branch information
repeatedly committed May 11, 2020
1 parent 2502cb8 commit 405b72f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/fluent/supervisor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,10 @@ def run_worker

main_process do
create_socket_manager if @standalone_worker
ServerEngine::Privilege.change(@chuser, @chgroup) if @standalone_worker
if @standalone_worker
ServerEngine::Privilege.change(@chuser, @chgroup)
File.umask(0)
end
MessagePackFactory.init(enable_time_support: @system_config.enable_msgpack_time_support)
Fluent::Engine.init(@system_config)
Fluent::Engine.run_configure(@conf)
Expand Down

0 comments on commit 405b72f

Please sign in to comment.