git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add control=suppress_local_fixups to complete the quartet.
[exim.git]
/
src
/
src
/
exim_lock.c
diff --git
a/src/src/exim_lock.c
b/src/src/exim_lock.c
index 15f0d285c7c6e02d4d06a731a3689863b25e9b47..9e2f43373053a377189efa32b352de19092c00ea 100644
(file)
--- a/
src/src/exim_lock.c
+++ b/
src/src/exim_lock.c
@@
-1,4
+1,4
@@
-/* $Cambridge: exim/src/src/exim_lock.c,v 1.
1 2004/10/07 10:39:01
ph10 Exp $ */
+/* $Cambridge: exim/src/src/exim_lock.c,v 1.
3 2005/06/27 14:29:43
ph10 Exp $ */
/* A program to lock a file exactly as Exim would, for investigation of
interlocking problems.
/* A program to lock a file exactly as Exim would, for investigation of
interlocking problems.
@@
-329,7
+329,7
@@
for (j = 0; j < lock_retries; j++)
/* Apply hitching post algorithm. */
if ((rc = link(hitchname, lockname)) != 0) fstat(hd, &statbuf);
/* Apply hitching post algorithm. */
if ((rc = link(hitchname, lockname)) != 0) fstat(hd, &statbuf);
- close(hd);
+
(void)
close(hd);
unlink(hitchname);
if (rc != 0 && statbuf.st_nlink != 2)
unlink(hitchname);
if (rc != 0 && statbuf.st_nlink != 2)
@@
-439,7
+439,7
@@
for (j = 0; j < lock_retries; j++)
goto CLEAN_UP;
}
goto CLEAN_UP;
}
-
chmod
(tempname, 0600);
+
(void)chmod
(tempname, 0600);
if (apply_lock(md, F_WRLCK, use_fcntl, lock_fcntl_timeout, use_flock,
lock_flock_timeout) >= 0)
if (apply_lock(md, F_WRLCK, use_fcntl, lock_fcntl_timeout, use_flock,
lock_flock_timeout) >= 0)
@@
-551,12
+551,12
@@
if (restore_times)
struct stat strestore;
struct utimbuf ut;
stat(filename, &strestore);
struct stat strestore;
struct utimbuf ut;
stat(filename, &strestore);
- system(command);
+
(void)
system(command);
ut.actime = strestore.st_atime;
ut.modtime = strestore.st_mtime;
utime(filename, &ut);
}
ut.actime = strestore.st_atime;
ut.modtime = strestore.st_mtime;
utime(filename, &ut);
}
-else system(command);
+else
(void)
system(command);
/* Remove the locks and exit. Unlink the /tmp file if we can get an exclusive
lock on the mailbox. This should be a non-blocking lock call, as there is no
/* Remove the locks and exit. Unlink the /tmp file if we can get an exclusive
lock on the mailbox. This should be a non-blocking lock call, as there is no