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:
aa89643
)
fix indent
author
Richard Kettlewell
<rjk@greenend.org.uk>
Wed, 21 Nov 2007 00:42:34 +0000
(
00:42
+0000)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Wed, 21 Nov 2007 00:42:34 +0000
(
00:42
+0000)
server/disorderd.c
patch
|
blob
|
blame
|
history
diff --git
a/server/disorderd.c
b/server/disorderd.c
index 944777a8a94e7047a0a5b0bdd5316d25623d45fe..e8e1046067bc1d9fc831e7cbd31220e13e1d4f8a 100644
(file)
--- a/
server/disorderd.c
+++ b/
server/disorderd.c
@@
-264,8
+264,8
@@
int main(int argc, char **argv) {
if(config->lock) {
const char *lockfile;
int lockfd;
if(config->lock) {
const char *lockfile;
int lockfd;
- struct flock lock;
-
+
struct flock lock;
+
lockfile = config_get_file("lock");
if((lockfd = open(lockfile, O_RDWR|O_CREAT, 0600)) < 0)
fatal(errno, "error opening %s", lockfile);
lockfile = config_get_file("lock");
if((lockfd = open(lockfile, O_RDWR|O_CREAT, 0600)) < 0)
fatal(errno, "error opening %s", lockfile);