Fix to not create zombie

This commit is contained in:
uu59 2014-07-31 10:56:52 +09:00
parent 3f27a3af3e
commit 144cfdeeef

View File

@ -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