From 81549c5bff9de009cc66d5dafd2af13a769ef550 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 15 Apr 2013 12:16:05 +1000 Subject: [PATCH] Avoid applog in recalloc_sock. --- util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util.c b/util.c index ff423b7a..2e02c226 100644 --- a/util.c +++ b/util.c @@ -1021,7 +1021,8 @@ static void recalloc_sock(struct pool *pool, size_t len) if (new < pool->sockbuf_size) return; new = new + (RBUFSIZE - (new % RBUFSIZE)); - applog(LOG_DEBUG, "Recallocing pool sockbuf to %d", new); + // Avoid potentially recursive locking + // applog(LOG_DEBUG, "Recallocing pool sockbuf to %d", new); pool->sockbuf = realloc(pool->sockbuf, new); if (!pool->sockbuf) quit(1, "Failed to realloc pool sockbuf in recalloc_sock");