summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2014-07-02 08:49:19 -0700
committerShawn Routhier <sar@isc.org>2014-07-02 08:49:19 -0700
commite9326fd0f4561db5496f18523da15612213bd1b4 (patch)
tree49a42d6ce5b3249f0d1d6834132e3a5e56fce5c5 /includes
parentad80055f727d2fb61df996516b553e4f3f698a0c (diff)
downloadisc-dhcp-e9326fd0f4561db5496f18523da15612213bd1b4.tar.gz
[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.
Diffstat (limited to 'includes')
-rw-r--r--includes/site.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/site.h b/includes/site.h
index 6ba5a8a7..d87b309e 100644
--- a/includes/site.h
+++ b/includes/site.h
@@ -295,6 +295,15 @@
prefix. */
#define DHCLIENT_DEFAULT_PREFIX_LEN 64
+/* Enable the gentle shutdown signal handling. Currently this
+ means that on SIGINT or SIGTERM a client will release its
+ address and a server in a failover pair will go through
+ partner down. Both of which can be undesireable in some
+ situations. We plan to revisit this feature and may
+ make non-backwards compatible changes including the
+ removal of this define. Use at your own risk. */
+/* #define ENABLE_GENTLE_SHUTDOWN */
+
/* Include definitions for various options. In general these
should be left as is, but if you have already defined one
of these and prefer your definition you can comment the