From 8e4ae12b4d0559a827f740f60b11f386f27f89dd Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 21 Jul 2014 10:52:48 +0000 Subject: 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. --- server.c | 1 + 1 file changed, 1 insertion(+) (limited to 'server.c') 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: -- cgit v1.2.3