2
0
Fork 0
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:
Sam 2015-03-27 15:44:52 +11:00
parent 251ebb0d65
commit 1721872084
2 changed files with 15 additions and 7 deletions

View file

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