diff options
author | Shawn Routhier <sar@isc.org> | 2014-07-02 08:49:19 -0700 |
---|---|---|
committer | Shawn Routhier <sar@isc.org> | 2014-07-02 08:49:19 -0700 |
commit | e9326fd0f4561db5496f18523da15612213bd1b4 (patch) | |
tree | 49a42d6ce5b3249f0d1d6834132e3a5e56fce5c5 /relay | |
parent | ad80055f727d2fb61df996516b553e4f3f698a0c (diff) | |
download | isc-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 'relay')
-rw-r--r-- | relay/dhcrelay.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/relay/dhcrelay.c b/relay/dhcrelay.c index 115fbd45..80ebc395 100644 --- a/relay/dhcrelay.c +++ b/relay/dhcrelay.c @@ -591,9 +591,12 @@ main(int argc, char **argv) { dhcpv6_packet_handler = do_packet6; #endif +#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 /* Start dispatching packets and timeouts... */ dispatch(); |