diff options
author | nicm <nicm> | 2014-07-21 10:52:48 +0000 |
---|---|---|
committer | nicm <nicm> | 2014-07-21 10:52:48 +0000 |
commit | 8e4ae12b4d0559a827f740f60b11f386f27f89dd (patch) | |
tree | 7636c3f15f2662bd72cbaa4fd49091dcaae66e87 /server.c | |
parent | 2056a9ef9e91996c294b5db0a3d01ed415e95e56 (diff) | |
download | rtmux-8e4ae12b4d0559a827f740f60b11f386f27f89dd.tar.gz rtmux-8e4ae12b4d0559a827f740f60b11f386f27f89dd.tar.bz2 rtmux-8e4ae12b4d0559a827f740f60b11f386f27f89dd.zip |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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: |