comparison cli-session.c @ 1495:0c16b4ccbd54

make signal flags volatile, simplify handling
author Matt Johnston <matt@ucc.asn.au>
date Wed, 14 Feb 2018 23:06:01 +0800
parents 38c6bcbf4f4a
children f20038b513a5
comparison
equal deleted inserted replaced
1494:da095983a60b 1495:0c16b4ccbd54
116 116
117 /* Set up cli_ses vars */ 117 /* Set up cli_ses vars */
118 cli_session_init(proxy_cmd_pid); 118 cli_session_init(proxy_cmd_pid);
119 119
120 /* Ready to go */ 120 /* Ready to go */
121 sessinitdone = 1; 121 ses.init_done = 1;
122 122
123 /* Exchange identification */ 123 /* Exchange identification */
124 send_session_identification(); 124 send_session_identification();
125 125
126 kexfirstinitialise(); /* initialise the kex state */ 126 kexfirstinitialise(); /* initialise the kex state */
336 } 336 }
337 } 337 }
338 338
339 static void cli_session_cleanup(void) { 339 static void cli_session_cleanup(void) {
340 340
341 if (!sessinitdone) { 341 if (!ses.init_done) {
342 return; 342 return;
343 } 343 }
344 344
345 kill_proxy_command(); 345 kill_proxy_command();
346 346