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

Diff for /src/usr.bin/ssh/session.c between version 1.146 and 1.147

version 1.146, 2002/07/30 17:03:55 version 1.147, 2002/08/22 21:45:41
Line 1601 
Line 1601 
         PRIVSEP(session_pty_cleanup2(session));          PRIVSEP(session_pty_cleanup2(session));
 }  }
   
   static char *
   sig2name(int sig)
   {
   #define SSH_SIG(x) if (sig == SIG ## x) return #x
           SSH_SIG(ABRT);
           SSH_SIG(ALRM);
           SSH_SIG(FPE);
           SSH_SIG(HUP);
           SSH_SIG(ILL);
           SSH_SIG(INT);
           SSH_SIG(KILL);
           SSH_SIG(PIPE);
           SSH_SIG(QUIT);
           SSH_SIG(SEGV);
           SSH_SIG(TERM);
           SSH_SIG(USR1);
           SSH_SIG(USR2);
   #undef  SSH_SIG
           return "SIG@openssh.com";
   }
   
 static void  static void
 session_exit_message(Session *s, int status)  session_exit_message(Session *s, int status)
 {  {
Line 1618 
Line 1639 
                 packet_send();                  packet_send();
         } else if (WIFSIGNALED(status)) {          } else if (WIFSIGNALED(status)) {
                 channel_request_start(s->chanid, "exit-signal", 0);                  channel_request_start(s->chanid, "exit-signal", 0);
                 packet_put_int(WTERMSIG(status));                  packet_put_cstring(sig2name(WTERMSIG(status)));
                 packet_put_char(WCOREDUMP(status));                  packet_put_char(WCOREDUMP(status));
                 packet_put_cstring("");                  packet_put_cstring("");
                 packet_put_cstring("");                  packet_put_cstring("");

Legend:
Removed from v.1.146  
changed lines
  Added in v.1.147