From 4faa3b65abad58a20c5e7e401361d30188460a83 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 17 Aug 2004 22:54:16 +0000 Subject: Better message handling when buffer runs out of memory. --- daemon/misc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'daemon/misc.c') diff --git a/daemon/misc.c b/daemon/misc.c index 7ab8147..c671276 100644 --- a/daemon/misc.c +++ b/daemon/misc.c @@ -17,6 +17,11 @@ extern pthread_mutex_t g_mutex; * Error Handling */ +void ha_memerr(const ha_request_t* rq) +{ + ha_messagex(rq, LOG_CRIT, "out of memory"); +} + const char kMsgDelimiter[] = ": "; #define MAX_MSGLEN 128 -- cgit v1.2.3