mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 06:15:55 +00:00
sync with branch
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
Routines for manipulating hash tables... */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995-2001 Internet Software Consortium.
|
||||
* Copyright (c) 1995-2000 Internet Software Consortium.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"$Id: hash.c,v 1.3 2001/06/27 00:30:48 mellon Exp $ Copyright (c) 1995-2001 The Internet Software Consortium. All rights reserved.\n";
|
||||
"$Id: hash.c,v 1.4 2001/08/10 10:50:22 mellon Exp $ Copyright (c) 1995-2001 The Internet Software Consortium. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <omapip/omapip_p.h>
|
||||
|
@@ -401,23 +401,27 @@ isc_result_t omapi_protocol_signal_handler (omapi_object_t *h,
|
||||
}
|
||||
|
||||
/* If we get a disconnect, dump memory usage. */
|
||||
if (!strcmp (name, "disconnect")
|
||||
#if defined (DEBUG_MEMORY_LEAKAGE)
|
||||
&& connect_outstanding != 0xBEADCAFE
|
||||
#endif
|
||||
) {
|
||||
if (!strcmp (name, "disconnect")) {
|
||||
#if defined (DEBUG_MEMORY_LEAKAGE)
|
||||
if (connect_outstanding != 0xBEADCAFE) {
|
||||
log_info ("generation %ld: %ld new, %ld outstanding, %ld%s",
|
||||
dmalloc_generation,
|
||||
dmalloc_outstanding - previous_outstanding,
|
||||
dmalloc_outstanding, dmalloc_longterm, " long-term");
|
||||
}
|
||||
#endif
|
||||
#if defined (DEBUG_MEMORY_LEAKAGE)
|
||||
dmalloc_dump_outstanding ();
|
||||
dmalloc_dump_outstanding ();
|
||||
#endif
|
||||
#if defined (DEBUG_RC_HISTORY_EXHAUSTIVELY)
|
||||
dump_rc_history (0);
|
||||
dump_rc_history ();
|
||||
#endif
|
||||
for (m = omapi_registered_messages; m; m = m -> next) {
|
||||
if (m -> protocol_object == p) {
|
||||
if (m -> object)
|
||||
omapi_signal (m -> object, "disconnect");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Not a signal we recognize? */
|
||||
|
Reference in New Issue
Block a user