rack/rack — pull request #505 by TimMoore (2013-01-30 03:14:00+00:00)
Title: Stop overwriting existing pidfiles.

A race condition can arise when two servers are started simultaneously. Both
instances may complete the check for an existing pidfile before either one
writes it.

Now the pidfile is opened with `::File::EXCL`, which raises an error if the file
already exists. This error is handled by retrying the check and the write.