Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv7742

Modified Files:
        client.c 
Log Message:
Sync OpenBSD patchset 713:

This ioctl(TIOCGWINSZ) call is no longer necessary, the result is never
used and the server now does it later on the tty fd directly.


Index: client.c
===================================================================
RCS file: /cvsroot/tmux/tmux/client.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- client.c    14 May 2010 14:35:26 -0000      1.92
+++ client.c    6 Jun 2010 00:25:47 -0000       1.93
@@ -17,7 +17,6 @@
  */
 
 #include <sys/types.h>
-#include <sys/ioctl.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <sys/un.h>
@@ -119,12 +118,9 @@
 client_send_identify(int flags)
 {
        struct msg_identify_data        data;
-       struct winsize                  ws;
        char                           *term;
        int                             fd;
 
-       if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) == -1)
-               fatal("ioctl(TIOCGWINSZ)");
        data.flags = flags;
 
        if (getcwd(data.cwd, sizeof data.cwd) == NULL)


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to