Lock pidfiles with fcntl and create them atomically.
authorBen Pfaff <blp@nicira.com>
Wed, 23 Jul 2008 20:07:02 +0000 (13:07 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 23 Jul 2008 20:12:23 +0000 (13:12 -0700)
commitdae8a4a83cd5f7449dfc153d02cbb93dd7ce7b98
tree3ea22af286401d562c6a1ad5c88cf41b3bc474b2
parent32c18a40af5495395d7df133dae95dabc81d4877
Lock pidfiles with fcntl and create them atomically.

This makes it possible to verify that the program that created the
pidfile is still running.
lib/daemon.c