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

Diff for /src/usr.bin/tmux/Attic/server-msg.c between version 1.19 and 1.20

version 1.19, 2009/09/23 06:12:58 version 1.20, 2009/09/23 06:18:47
Line 40 
Line 40 
         struct imsg              imsg;          struct imsg              imsg;
         struct msg_command_data  commanddata;          struct msg_command_data  commanddata;
         struct msg_identify_data identifydata;          struct msg_identify_data identifydata;
         struct msg_unlock_data   unlockdata;  
         struct msg_environ_data  environdata;          struct msg_environ_data  environdata;
         ssize_t                  n, datalen;          ssize_t                  n, datalen;
   
Line 95 
Line 94 
                         tty_close(&c->tty);                          tty_close(&c->tty);
                         server_write_client(c, MSG_EXITED, NULL, 0);                          server_write_client(c, MSG_EXITED, NULL, 0);
                         break;                          break;
                 case MSG_UNLOCK:  
                         if (datalen != sizeof unlockdata)  
                                 fatalx("bad MSG_UNLOCK size");  
                         memcpy(&unlockdata, imsg.data, sizeof unlockdata);  
   
                         unlockdata.pass[(sizeof unlockdata.pass) - 1] = '\0';  
                         switch (server_unlock(unlockdata.pass)) {  
                         case -1:  
                                 server_write_error(c, "bad password");  
                                 break;  
                         case -2:  
                                 server_write_error(c,  
                                     "too many bad passwords, sleeping");  
                                 break;  
                         }  
                         memset(&unlockdata, 0, sizeof unlockdata);  
                         server_write_client(c, MSG_EXIT, NULL, 0);  
                         break;  
                 case MSG_WAKEUP:                  case MSG_WAKEUP:
                   case MSG_UNLOCK:
                         if (datalen != 0)                          if (datalen != 0)
                                 fatalx("bad MSG_WAKEUP size");                                  fatalx("bad MSG_WAKEUP size");
   
                         c->flags &= ~CLIENT_SUSPENDED;                          c->flags &= ~CLIENT_SUSPENDED;
                         tty_start_tty(&c->tty);                          tty_start_tty(&c->tty);
                         server_redraw_client(c);                          server_redraw_client(c);
                           server_activity = time(NULL);
                         break;                          break;
                 case MSG_ENVIRON:                  case MSG_ENVIRON:
                         if (datalen != sizeof environdata)                          if (datalen != sizeof environdata)

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20