mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 09:17:05 +02:00
Fix to not create zombie
This commit is contained in:
parent
3f27a3af3e
commit
144cfdeeef
@ -34,7 +34,8 @@ class Fluentd
|
||||
|
||||
def detached_command(cmd)
|
||||
Bundler.with_clean_env do
|
||||
spawn(cmd)
|
||||
pid = spawn(cmd)
|
||||
Process.detach(pid)
|
||||
end
|
||||
sleep 1 # NOTE/FIXME: too early return will be caused incorrect status report, "sleep 1" is a adhoc hack
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user