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