From: Richard Kettlewell Date: Sun, 12 Apr 2009 20:20:28 +0000 (+0100) Subject: Always take out a server lock. X-Git-Tag: 5.0~133 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/b4a8d0ffa9ecf46a806be320e52362bc96c66a8b Always take out a server lock. --- diff --git a/server/disorderd.c b/server/disorderd.c index 2bf6434..2203739 100644 --- a/server/disorderd.c +++ b/server/disorderd.c @@ -244,7 +244,7 @@ int main(int argc, char **argv) { /* make sure we're not root, whatever the config says */ if(getuid() == 0 || geteuid() == 0) fatal(0, "do not run as root"); /* open a lockfile - we only want one copy of the server to run at once. */ - if(config->lock) { + if(1) { const char *lockfile; int lockfd; struct flock lock;