chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
90b8faa
)
Always take out a server lock.
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 12 Apr 2009 20:20:28 +0000
(21:20 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 12 Apr 2009 20:20:28 +0000
(21:20 +0100)
server/disorderd.c
patch
|
blob
|
blame
|
history
diff --git
a/server/disorderd.c
b/server/disorderd.c
index 2bf64343e8e6aed6e9c1f4f1fce6822e5ec814f1..22037393eeeb38bb6f8380797c0939a23ea8b5e4 100644
(file)
--- 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. */
/* 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;
const char *lockfile;
int lockfd;
struct flock lock;