mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 17:27:09 +02:00
Prevent zombie processes from increasing
fixes #165 Before, in dashboard, clicking "Start" button creates a process as zombie, but clicking "Stop" button doesn't kill it. This change prevents it from becoming zombie.
This commit is contained in:
parent
41fd430323
commit
8f21c5f68c
@ -67,7 +67,8 @@ class Fluentd
|
||||
def actual_start
|
||||
return unless validate_fluentd_options
|
||||
Bundler.with_clean_env do
|
||||
spawn("fluentd #{options_to_argv}")
|
||||
pid = spawn("fluentd #{options_to_argv}")
|
||||
Process.detach(pid)
|
||||
end
|
||||
|
||||
wait_starting
|
||||
|
Loading…
Reference in New Issue
Block a user