[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.152 and 1.153

version 1.152, 2021/02/11 08:28:45 version 1.153, 2021/02/11 09:39:29
Line 223 
Line 223 
 static void  static void
 client_exit(void)  client_exit(void)
 {  {
         struct client_file      *cf;          if (!file_write_left(&client_files))
         size_t                   left;  
         int                      waiting = 0;  
   
         RB_FOREACH (cf, client_files, &client_files) {  
                 if (cf->event == NULL)  
                         continue;  
                 left = EVBUFFER_LENGTH(cf->event->output);  
                 if (left != 0) {  
                         waiting++;  
                         log_debug("file %u %zu bytes left", cf->stream, left);  
                 }  
         }  
         if (waiting == 0)  
                 proc_exit(client_proc);                  proc_exit(client_proc);
 }  }
   

Legend:
Removed from v.1.152  
changed lines
  Added in v.1.153