From b540a9e07571aaaeea5cc2b81e695829d228c2f1 Mon Sep 17 00:00:00 2001 From: james Date: Wed, 9 Nov 2005 08:36:26 +0000 Subject: Merged (with some changes) Alon's connect-retry-max option from /contrib/alon/BETA21@783. Added uninit_management_callback call to init_instance_handle_signals so that signals thrown during initialization can bring us back to a management hold. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@786 e7ae566f-a301-0410-adde-c780ea21d3b5 --- init.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'init.c') diff --git a/init.c b/init.c index 4e3b6e7..bd90b80 100644 --- a/init.c +++ b/init.c @@ -1811,6 +1811,7 @@ do_init_socket_1 (struct context *c, int mode) c->plugins, c->options.resolve_retry_seconds, c->options.connect_retry_seconds, + c->options.connect_retry_max, c->options.mtu_discover_type, c->options.rcvbuf, c->options.sndbuf, @@ -2371,6 +2372,14 @@ init_instance_handle_signals (struct context *c, const struct env_set *env, cons pre_init_signal_catch (); init_instance (c, env, flags); post_init_signal_catch (); + + /* + * This is done so that signals thrown during + * initialization can bring us back to + * a management hold. + */ + if (IS_SIG (c)) + uninit_management_callback (); } /* -- cgit