puppetlabs/puppet — pull request #2616 by JHaals (2014-05-05 15:50:50+00:00)
Title: (PUP-1070) cleanup empty/invalid lockfile

Currently lockfiles won't be cleaned up automatically if they're empty or contain
non numeric characters.

This commit solves this by verifying that the content of the lockfile
contains a number or otherwise return nil which will result in deleting
the pidfile.