Skip to content

Commit

Permalink
Merge pull request #2987 from fluent/call-umask-in-standalone-worker
Browse files Browse the repository at this point in the history
supervisor: Call File.umask for standalone worker. fix #2984
  • Loading branch information
repeatedly committed May 12, 2020
2 parents 55d11dd + 405b72f commit 46bb832
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 46bb832

Please sign in to comment.