indexzero/daemon.node — pull request #11 by danfuzz (2012-01-18 18:51:09+00:00)
Title: Only truncate the lockfile after it's been successfully locked.

Otherwise, just trying to start a second daemon process will cause the
lockfile contents to get erased.

##########

Thanks for your consideration,

-dan