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

Diff for /src/usr.bin/tmux/window.c between version 1.61 and 1.62

version 1.61, 2010/12/30 21:35:17 version 1.62, 2011/01/08 01:52:37
Line 563 
Line 563 
     const char *cwd, struct environ *env, struct termios *tio, char **cause)      const char *cwd, struct environ *env, struct termios *tio, char **cause)
 {  {
         struct winsize   ws;          struct winsize   ws;
         int              mode;  
         char            *argv0;          char            *argv0;
         const char      *ptr;          const char      *ptr;
         struct termios   tio2;          struct termios   tio2;
Line 637 
Line 636 
                 fatal("execl failed");                  fatal("execl failed");
         }          }
   
         if ((mode = fcntl(wp->fd, F_GETFL)) == -1)          setblocking(wp->fd, 0);
                 fatal("fcntl failed");  
         if (fcntl(wp->fd, F_SETFL, mode|O_NONBLOCK) == -1)  
                 fatal("fcntl failed");  
         wp->event = bufferevent_new(wp->fd,          wp->event = bufferevent_new(wp->fd,
             window_pane_read_callback, NULL, window_pane_error_callback, wp);              window_pane_read_callback, NULL, window_pane_error_callback, wp);
         bufferevent_enable(wp->event, EV_READ|EV_WRITE);          bufferevent_enable(wp->event, EV_READ|EV_WRITE);

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62