summaryrefslogtreecommitdiff
path: root/relay/dhcrelay.c
diff options
context:
space:
mode:
Diffstat (limited to 'relay/dhcrelay.c')
-rw-r--r--relay/dhcrelay.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/relay/dhcrelay.c b/relay/dhcrelay.c
index dd8e446d..09162100 100644
--- a/relay/dhcrelay.c
+++ b/relay/dhcrelay.c
@@ -1869,7 +1869,7 @@ process_down6(struct packet *packet) {
&global_scope, oc, MDL) ||
(relay_msg.len < offsetof(struct dhcpv6_packet, options))) {
log_error("Can't evaluate relay-msg.");
- return;
+ goto cleanup;
}
msg = (const struct dhcpv6_packet *) relay_msg.data;
@@ -2076,6 +2076,9 @@ dhcp_set_control_state(control_object_state_t oldstate,
if (newstate != server_shutdown)
return ISC_R_SUCCESS;
+ /* Log shutdown on signal. */
+ log_info("Received signal %d, initiating shutdown.", shutdown_signal);
+
if (no_pid_file == ISC_FALSE)
(void) unlink(path_dhcrelay_pid);