]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Revert (once again, and hopefully for the last time) to flock(2) locks.
authorDag-Erling Smørgrav <des@FreeBSD.org>
Sat, 6 Jun 2009 18:47:03 +0000 (18:47 +0000)
committerDag-Erling Smørgrav <des@FreeBSD.org>
Sat, 6 Jun 2009 18:47:03 +0000 (18:47 +0000)
commit5649afd028c62ae91a75c10a285c88e7b38e15e6
tree31cf1578dd1fe8b1672c288942548b816d815953
parenta27c52a943d6e236977c19df7e1f86f1b667b523
Revert (once again, and hopefully for the last time) to flock(2) locks.
The problem with fcntl(2) locks is that they are not inherited by child
processes.  This breaks pidfile(3), where the common idiom is to open
and lock the PID file before daemonizing.
lib/libutil/flopen.3
lib/libutil/flopen.c