From: Ted Lemon Date: Mon, 4 Oct 1999 23:14:00 +0000 (+0000) Subject: Log a message if omapi_one_dispatch fails. X-Git-Tag: V3-BETA-1-PATCH-2~5^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00763cc18e76ef84b8e105b7b550931e9b5ed977;p=thirdparty%2Fdhcp.git Log a message if omapi_one_dispatch fails. --- diff --git a/common/dispatch.c b/common/dispatch.c index e910f8e0f..9bae29d6c 100644 --- a/common/dispatch.c +++ b/common/dispatch.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: dispatch.c,v 1.56 1999/09/28 22:50:02 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dispatch.c,v 1.57 1999/10/04 23:14:00 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -70,6 +70,8 @@ void dispatch () /* Wait for a packet or a timeout... XXX */ status = omapi_one_dispatch (0, tvp); } while (status == ISC_R_TIMEDOUT || status == ISC_R_SUCCESS); + log_fatal ("omapi_one_dispatch failed: %s -- exiting." + isc_result_totext (status)); } void add_timeout (when, where, what)