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 /client/dhclient.c | |
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 'client/dhclient.c')
-rw-r--r-- | client/dhclient.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/dhclient.c b/client/dhclient.c index 12c42b79..5ef59cd4 100644 --- a/client/dhclient.c +++ b/client/dhclient.c @@ -714,9 +714,12 @@ main(int argc, char **argv) { dmalloc_outstanding = 0; #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 /* If we're not supposed to wait before getting the address, don't. */ |