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

Diff for /src/usr.bin/tmux/client.c between version 1.23 and 1.24

version 1.23, 2009/10/13 13:11:06 version 1.24, 2009/10/13 13:15:26
Line 216 
Line 216 
          * Print exit status message, unless running as a login shell where it           * Print exit status message, unless running as a login shell where it
          * would either be pointless or irritating.           * would either be pointless or irritating.
          */           */
         if (!login_shell) {          if (sigterm) {
                 if (sigterm) {                  printf("[terminated]\n");
                         printf("[terminated]\n");                  return (1);
           }
           switch (cctx->exittype) {
           case CCTX_DIED:
                   printf("[lost server]\n");
                   return (0);
           case CCTX_SHUTDOWN:
                   if (!login_shell)
                           printf("[server exited]\n");
                   return (0);
           case CCTX_EXIT:
                   if (cctx->errstr != NULL) {
                           printf("[error: %s]\n", cctx->errstr);
                         return (1);                          return (1);
                 }                  }
                 switch (cctx->exittype) {                  if (!login_shell)
                 case CCTX_DIED:  
                         printf("[lost server]\n");  
                         return (0);  
                 case CCTX_SHUTDOWN:  
                         printf("[server exited]\n");  
                         return (0);  
                 case CCTX_EXIT:  
                         if (cctx->errstr != NULL) {  
                                 printf("[error: %s]\n", cctx->errstr);  
                                 return (1);  
                         }  
                         printf("[exited]\n");                          printf("[exited]\n");
                         return (0);                  return (0);
                 case CCTX_DETACH:          case CCTX_DETACH:
                   if (!login_shell)
                         printf("[detached]\n");                          printf("[detached]\n");
                         return (0);                  return (0);
                 default:          default:
                         printf("[unknown error]\n");                  printf("[unknown error]\n");
                         return (1);                  return (1);
                 }  
         }          }
 }  }
   

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24