Avoid getppid() if serving heavy traffic
commite93f84e28f0da4ce7aa21d714f0504677f4bf6f6
authorEric Wong <normalperson@yhbt.net>
Fri, 24 Apr 2009 08:21:31 +0000 (24 01:21 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 24 Apr 2009 08:21:31 +0000 (24 01:21 -0700)
tree265bc52928adec0c9d5c69bc0afec5a8d91c5ab1
parenta60c5ddaf8082c5a59a68fb0b726a520c4e94e19
Avoid getppid() if serving heavy traffic

As long as our speculative accept()s are succeeding, then avoid
checking for master process death and keep processing requests.
This allows us to save some syscalls under extremely heavy
traffic spikes.
lib/unicorn.rb