[BACK]Return to monitor.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/monitor.c between version 1.39 and 1.40

version 1.39, 2003/05/14 02:15:47 version 1.40, 2003/05/14 08:57:49
Line 135 
Line 135 
 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;
Line 299 
Line 300 
         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;
   

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40