mirror of
https://github.com/discourse/discourse.git
synced 2025-08-20 18:52:44 +08:00
cleanup out-of-memory detection and correction code
This commit is contained in:
parent
251ebb0d65
commit
1721872084
2 changed files with 15 additions and 7 deletions
|
@ -154,7 +154,8 @@ class Demon::Base
|
|||
begin
|
||||
delete_pid_file
|
||||
ensure
|
||||
exit
|
||||
# TERM is way cleaner than exit
|
||||
Process.kill("TERM", Process.pid)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue