extern int keep_partial;
extern int log_got_error;
extern char *partial_dir;
-@@ -106,6 +109,11 @@ void _exit_cleanup(int code, const char
- SIGACTION(SIGUSR1, SIG_IGN);
- SIGACTION(SIGUSR2, SIG_IGN);
+@@ -103,6 +106,11 @@ NORETURN void _exit_cleanup(int code, co
+
+ in_exit_cleanup = 1;
+#if HAVE_OPENSSL
+ if (use_ssl)
*argv = poptGetArgs(pc);
*argc = count_args(*argv);
am_starting_up = 0;
-@@ -1084,6 +1142,12 @@ int parse_arguments(int *argc, const cha
+@@ -1082,6 +1140,12 @@ int parse_arguments(int *argc, const cha
usage(FINFO);
exit_cleanup(0);
default:
/* A large opt value means that set_refuse_options()
* turned this option off. */
-@@ -1364,6 +1428,17 @@ int parse_arguments(int *argc, const cha
+@@ -1358,6 +1422,17 @@ int parse_arguments(int *argc, const cha
if (delay_updates && !partial_dir)
partial_dir = tmp_partialdir;
if (inplace) {
#ifdef HAVE_FTRUNCATE
if (partial_dir) {
-@@ -1781,10 +1856,27 @@ char *check_for_hostspec(char *s, char *
+@@ -1775,10 +1850,27 @@ char *check_for_hostspec(char *s, char *
char *p;
int not_host;
int hostlen;