2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

Implement library for lockfiles and use it in cfg code.

This is useful because the upcoming configuration database also needs a
lockfile implementation.

Also adds tests.
This commit is contained in:
Ben Pfaff
2009-10-14 16:52:04 -07:00
parent 8ca79daaa0
commit ac718c9dbd
10 changed files with 627 additions and 124 deletions

View File

@@ -23,6 +23,7 @@
#include <unistd.h>
#include "fatal-signal.h"
#include "dirs.h"
#include "lockfile.h"
#include "timeval.h"
#include "util.h"
@@ -224,6 +225,7 @@ daemonize(void)
chdir("/");
}
time_postfork();
lockfile_postfork();
break;
case -1: