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

Diff for /src/usr.bin/tmux/server.c between version 1.1 and 1.2

version 1.1, 2009/06/01 22:58:49 version 1.2, 2009/06/24 17:36:15
Line 966 
Line 966 
         return (1);          return (1);
 }  }
   
 /* Check if window still exists.. */  /* Check if window still exists. */
 void  void
 server_check_window(struct window *w)  server_check_window(struct window *w)
 {  {
Line 984 
Line 984 
         wp = TAILQ_FIRST(&w->panes);          wp = TAILQ_FIRST(&w->panes);
         while (wp != NULL) {          while (wp != NULL) {
                 wq = TAILQ_NEXT(wp, entry);                  wq = TAILQ_NEXT(wp, entry);
                 if (wp->fd != -1)                  /*
                         destroyed = 0;                   * If the pane has died and the remain-on-exit flag is not set,
                 else if (!flag) {                   * remove the pane; otherwise, if the flag is set, don't allow
                    * the window to be destroyed (or it'll close when the last
                    * pane dies).
                    */
                   if (wp->fd == -1 && !flag) {
                         window_remove_pane(w, wp);                          window_remove_pane(w, wp);
                         server_redraw_window(w);                          server_redraw_window(w);
                         layout_refresh(w, 0);                          layout_refresh(w, 0);
                 }                  } else
                           destroyed = 0;
                 wp = wq;                  wp = wq;
         }          }
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2