mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 08:43:25 +08:00
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
|
||||
while true
|
||||
unless alive?(@parent_pid)
|
||||
Process.kill "QUIT", Process.pid
|
||||
Process.kill "TERM", Process.pid
|
||||
sleep 10
|
||||
Process.kill "KILL", Process.pid
|
||||
end
|
||||
sleep 1
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user