small cleanup to pid file handling + documentation
commite417bd2d262f703212d4d671498420e554105639
authorEric Wong <normalperson@yhbt.net>
Wed, 30 Sep 2009 20:41:29 +0000 (30 13:41 -0700)
committerEric Wong <normalperson@yhbt.net>
Wed, 30 Sep 2009 21:03:44 +0000 (30 14:03 -0700)
tree71d2848c305979eedc60cc8ad5879f6af90319f4
parentf3f43f1b6c3930525a892c8ce860f072184fe981
small cleanup to pid file handling + documentation

It's pointless to try and stat a file before trying to read it.
Instead just try opening it and rescue ENOENT because it
would've been racy anyways.

Additionally add some comments to keep us from forgetting
why we did the things we did with the pid file management.
lib/unicorn.rb