chiark / gitweb /
Always take out a server lock.
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 12 Apr 2009 20:20:28 +0000 (21:20 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 12 Apr 2009 20:20:28 +0000 (21:20 +0100)
server/disorderd.c

index 2bf64343e8e6aed6e9c1f4f1fce6822e5ec814f1..22037393eeeb38bb6f8380797c0939a23ea8b5e4 100644 (file)
@@ -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;