418. [bug] At debug levels >= 10, getting an unexpected

socket receive error would crash the server
                        while trying to log the error message.
This commit is contained in:
Andreas Gustafsson
2000-09-01 22:41:46 +00:00
parent 798e2f30d6
commit f38a84ce83
2 changed files with 9 additions and 5 deletions

View File

@@ -1,4 +1,8 @@
418. [bug] At debug levels >= 10, getting an unexpected
socket receive error would crash the server
while trying to log the error message.
417. [func] Add isc_app_block() and isc_app_unblock(), which
allow an application to handle signals while
blocking.

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dispatch.c,v 1.65 2000/09/01 07:16:04 explorer Exp $ */
/* $Id: dispatch.c,v 1.66 2000/09/01 22:41:46 gson Exp $ */
#include <config.h>
@@ -530,14 +530,14 @@ udp_recv(isc_task_t *task, isc_event_t *ev_in) {
return;
}
dispatch_log(disp, LVL(10),
"odd socket result in udp_recv(): %s\n",
ev->result);
/*
* otherwise, on strange error, log it and restart.
* XXXMLG
*/
dispatch_log(disp, LVL(10),
"odd socket result in udp_recv(): %s",
isc_result_totext(ev->result));
goto restart;
}