summaryrefslogtreecommitdiffstats
path: root/server.c
diff options
context:
space:
mode:
authornicm <nicm>2014-07-21 10:52:48 +0000
committernicm <nicm>2014-07-21 10:52:48 +0000
commit8e4ae12b4d0559a827f740f60b11f386f27f89dd (patch)
tree7636c3f15f2662bd72cbaa4fd49091dcaae66e87 /server.c
parent2056a9ef9e91996c294b5db0a3d01ed415e95e56 (diff)
lockf is entirely useless and it was a mistake to change to it, go back
to using flock which actually works sensibly. Also always retry the lock to fix a potential race, and add some extra logging.
Diffstat (limited to 'server.c')
-rw-r--r--server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server.c b/server.c
index 7ddc6ec1..2cab88f8 100644
--- a/server.c
+++ b/server.c
@@ -111,6 +111,7 @@ server_start(int lockfd, char *lockfile)
/* The first client is special and gets a socketpair; create it. */
if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, pair) != 0)
fatal("socketpair failed");
+ log_debug("starting server");
switch (fork()) {
case -1: