|
Lines 143-148
Link Here
|
| 143 |
static char *auth_method = "unknown"; |
143 |
static char *auth_method = "unknown"; |
| 144 |
static int session_id2_len = 0; |
144 |
static int session_id2_len = 0; |
| 145 |
static u_char *session_id2 = NULL; |
145 |
static u_char *session_id2 = NULL; |
|
|
146 |
static int monitor_child_pid; |
| 146 |
|
147 |
|
| 147 |
struct mon_table { |
148 |
struct mon_table { |
| 148 |
enum monitor_reqtype type; |
149 |
enum monitor_reqtype type; |
|
Lines 319-326
Link Here
|
| 319 |
} |
320 |
} |
| 320 |
|
321 |
|
| 321 |
void |
322 |
void |
|
|
323 |
monitor_set_child_handler(int pid) |
| 324 |
{ |
| 325 |
monitor_child_pid = pid; |
| 326 |
} |
| 327 |
|
| 328 |
void |
| 329 |
monitor_child_handler(int signal) |
| 330 |
{ |
| 331 |
kill(monitor_child_pid, signal); |
| 332 |
} |
| 333 |
|
| 334 |
void |
| 322 |
monitor_child_postauth(struct monitor *pmonitor) |
335 |
monitor_child_postauth(struct monitor *pmonitor) |
| 323 |
{ |
336 |
{ |
|
|
337 |
monitor_set_child_handler(pmonitor->m_pid); |
| 338 |
mysignal(SIGHUP, &monitor_child_handler); |
| 339 |
mysignal(SIGTERM, &monitor_child_handler); |
| 340 |
|
| 324 |
if (compat20) { |
341 |
if (compat20) { |
| 325 |
mon_dispatch = mon_dispatch_postauth20; |
342 |
mon_dispatch = mon_dispatch_postauth20; |