fix reliability of timeout kills
commitc7750815d56c98911c1dc4db26a8778657b45a1b
authorEric Wong <normalperson@yhbt.net>
Thu, 29 Oct 2009 20:15:01 +0000 (29 13:15 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 29 Oct 2009 20:15:01 +0000 (29 13:15 -0700)
tree8973299ec8f606d23b53fc94f6ca0221ff7ce177
parentfdffd90d6dc20eafe7518b7dd125f0e09df5e2f9
fix reliability of timeout kills

The method introduced in commit
6c8a3d3c55997978bacaecc5dbbb7d03c2fee345 to avoid killing
workers after suspend/hibernate interacted badly with the change
for OpenBSD fchmod(2) compatibility introduced with the 0.93.3
release.  This interaction lead to workers with files stuck in
the zero state to never be murdered off for timeout violations.

Additionally, the method to avoid killing processes off was
never completely reliable and has been reworked even if we
entered suspend/hibernate/STOP during client processing.

This regression was discovered during continued development of the
Rainbows! test suite (which we will bring over as it becomes ready).
lib/unicorn.rb