Only shut down the current process when the memory limit is reached
authorTom Hughes <tom@compton.nu>
Sun, 19 Dec 2010 00:15:24 +0000 (00:15 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 19 Dec 2010 00:15:24 +0000 (00:15 +0000)
commita491174efa130fb45494f444c3f66851c035215c
tree7d79c070180668e92ecb6c6a1e920a78f5147fc7
parenta998a0bb2012a6e983eae3da9377b3669e9f24b2
Only shut down the current process when the memory limit is reached

Contrary to what the ruby documentation says, sending a signal
to PID 0 actually signals the whole process group, not just the
current process. So use Process.pid to make sure we only signal
the current process.
config/initializers/memory_limits.rb