src/dbfn.c: write lock aquisition failures to the panic log
[exim.git] / src / src / dbfn.c
index c559a0b9b7de02dc0588c6898c876f6d06cd6054..751ca2e1aafa91570bdddf5ae8e3ddae3d18a43e 100644 (file)
@@ -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);