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

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

MSG_EXIT can now have a return code in the message, so check for that
size as well. Stops the client fatal()ing on exit.


Index: client.c
===================================================================
RCS file: /cvsroot/tmux/tmux/client.c,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- client.c    2 Jul 2010 02:52:13 -0000       1.95
+++ client.c    29 Aug 2010 14:43:45 -0000      1.96
@@ -301,7 +301,8 @@
                        client_exitmsg = "detached";
                        break;
                case MSG_EXIT:
-                       if (datalen != 0)
+                       if (datalen != 0 &&
+                           datalen != sizeof (struct msg_exit_data))
                                fatalx("bad MSG_EXIT size");
 
                        client_write_server(MSG_EXITING, NULL, 0);


------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to