ql-io/ql.io — pull request #324 by s3u (2012-03-05 23:20:04+00:00)
Title: Recover shutdown/stop from extraneous pid files.

Fixes https://github.com/ql-io/ql.io/issues/321.

This requires manual verification

* Create an app
* mkdir pids; cd pids
* touch master.0.pid; touch worker.1.pid; touch worker.2.pid;
* cd ..
* bin/start.sh

From another shell, do a bin/stop.sh or control-C. This would bring down the server. Prior to this fix, the server would hang in there.