2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

[master] Add define to disable gentle shutodwn by default

Add a define to disable the gentle shutdown feature by default.
The feature has some effects (recover-wait in failvoer pairs)
and release in clients that are always desired.  We plan to
revisit this in order to make it easier to use but with the
define it can be enabled if necessary.
This commit is contained in:
Shawn Routhier
2014-07-02 08:49:19 -07:00
parent ad80055f72
commit e9326fd0f4
5 changed files with 23 additions and 1 deletions

View File

@@ -787,9 +787,12 @@ main(int argc, char **argv) {
omapi_set_int_value ((omapi_object_t *)dhcp_control_object,
(omapi_object_t *)0, "state", server_running);
#if defined(ENABLE_GENTLE_SHUTDOWN)
/* no signal handlers until we deal with the side effects */
/* install signal handlers */
signal(SIGINT, dhcp_signal_handler); /* control-c */
signal(SIGTERM, dhcp_signal_handler); /* kill */
#endif
/* Log that we are about to start working */
log_info("Server starting service.");