mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-01 06:45:27 +00:00
Log a message if omapi_one_dispatch fails.
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -70,6 +70,8 @@ void dispatch ()
|
|||||||
/* Wait for a packet or a timeout... XXX */
|
/* Wait for a packet or a timeout... XXX */
|
||||||
status = omapi_one_dispatch (0, tvp);
|
status = omapi_one_dispatch (0, tvp);
|
||||||
} while (status == ISC_R_TIMEDOUT || status == ISC_R_SUCCESS);
|
} 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)
|
void add_timeout (when, where, what)
|
||||||
|
Reference in New Issue
Block a user