From 8c07b69f0292fa7dbfbd2409b389ae1e4ab5e222 Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Fri, 14 Jan 2011 14:12:23 +0000 Subject: src/dbfn.c: write lock aquisition failures to the panic log --- src/src/dbfn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/src/dbfn.c b/src/src/dbfn.c index c559a0b9b..751ca2e1a 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); -- cgit v1.2.3