version 1.39, 2003/05/14 02:15:47 |
version 1.40, 2003/05/14 08:57:49 |
|
|
static char *auth_method = "unknown"; |
static char *auth_method = "unknown"; |
static int session_id2_len = 0; |
static int session_id2_len = 0; |
static u_char *session_id2 = NULL; |
static u_char *session_id2 = NULL; |
|
static pid_t monitor_child_pid; |
|
|
struct mon_table { |
struct mon_table { |
enum monitor_reqtype type; |
enum monitor_reqtype type; |
|
|
return (authctxt); |
return (authctxt); |
} |
} |
|
|
|
static void |
|
monitor_set_child_handler(pid_t pid) |
|
{ |
|
monitor_child_pid = pid; |
|
} |
|
|
|
static void |
|
monitor_child_handler(int signal) |
|
{ |
|
kill(monitor_child_pid, signal); |
|
} |
|
|
void |
void |
monitor_child_postauth(struct monitor *pmonitor) |
monitor_child_postauth(struct monitor *pmonitor) |
{ |
{ |
|
monitor_set_child_handler(pmonitor->m_pid); |
|
signal(SIGHUP, &monitor_child_handler); |
|
signal(SIGTERM, &monitor_child_handler); |
|
|
if (compat20) { |
if (compat20) { |
mon_dispatch = mon_dispatch_postauth20; |
mon_dispatch = mon_dispatch_postauth20; |
|
|