naemon/naemon-core — pull request #75 by catharsis (2014-06-30 20:00:53+00:00)
Title: utils: Bail if we fail to truncate lockfile

If we can't truncate it, we're most likely not going to be able to write
our PID to it. Bail early, and let the user know what's going on.

Signed-off-by: Anton Lofgren