[exim-cvs] src/dbfn.c: write lock aquisition failures to the…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Exim Git Commits Mailing List
Dátum:  
Címzett: exim-cvs
Tárgy: [exim-cvs] src/dbfn.c: write lock aquisition failures to the panic log
Gitweb: http://git.exim.org/exim.git/commitdiff/8c07b69f0292fa7dbfbd2409b389ae1e4ab5e222
Commit:     8c07b69f0292fa7dbfbd2409b389ae1e4ab5e222
Parent:     293ae364882c5ecd5413cc889aa9e2b68c5d6d0b
Author:     Tony Finch <dot@???>
AuthorDate: Fri Jan 14 14:12:23 2011 +0000
Committer:  Tony Finch <dot@???>
CommitDate: Fri Jan 14 14:12:23 2011 +0000


    src/dbfn.c: write lock aquisition failures to the panic log
---
 doc/doc-txt/ChangeLog |    7 +++++++
 src/src/dbfn.c        |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)


diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index cd0de35..0be0142 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -3,6 +3,13 @@ $Cambridge: exim/doc/doc-txt/ChangeLog,v 1.632 2010/06/12 15:21:25 jetmore Exp $
Change log file for Exim from version 4.21
-------------------------------------------

+Exim version 4.74
+-----------------
+
+TF/01 Failure to get a lock on a hints database can have serious
+      consequences so log it to the panic log.
+
+
 Exim version 4.73
 -----------------


diff --git a/src/src/dbfn.c b/src/src/dbfn.c
index c559a0b..751ca2e 100644
--- a/src/src/dbfn.c
+++ b/src/src/dbfn.c
@@ -142,7 +142,7 @@ alarm(0);
 if (sigalrm_seen) errno = ETIMEDOUT;
 if (rc < 0)
   {
-  log_write(0, LOG_MAIN, "Failed to get %s lock for %s: %s",
+  log_write(0, LOG_MAIN|LOG_PANIC, "Failed to get %s lock for %s: %s",
     read_only? "read" : "write", buffer,
     (errno == ETIMEDOUT)? "timed out" : strerror(errno));
   (void)close(dbblock->lockfd);