BUGFIX: not terminating self correctly on hangups from parent
This commit is contained in:
parent
86b7429619
commit
58f3fcbc1a
|
@ -121,7 +121,9 @@ class Demon::Base
|
||||||
Thread.new do
|
Thread.new do
|
||||||
while true
|
while true
|
||||||
unless alive?(@parent_pid)
|
unless alive?(@parent_pid)
|
||||||
Process.kill "QUIT", Process.pid
|
Process.kill "TERM", Process.pid
|
||||||
|
sleep 10
|
||||||
|
Process.kill "KILL", Process.pid
|
||||||
end
|
end
|
||||||
sleep 1
|
sleep 1
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue