zeromq/czmq — pull request #869 by hintjens (2014-12-30 15:13:25+00:00)
Title: Problem: zsys_run_as lockfile handling was not working

The method closed the lockfile, which meant the lock was released and
a second process could then grab it.

Solution: do not close lockfile; it has to remain open as long as the
process runs.