CVSROOT:        /cvs
Module name:    src
Changes by:     n...@cvs.openbsd.org    2009/07/26 06:58:44

Modified files:
        usr.bin/tmux   : client-fn.c client-msg.c client.c 
                         cmd-attach-session.c cmd-bind-key.c 
                         cmd-break-pane.c cmd-choose-session.c 
                         cmd-choose-window.c cmd-clear-history.c 
                         cmd-clock-mode.c cmd-command-prompt.c 
                         cmd-confirm-before.c cmd-copy-buffer.c 
                         cmd-copy-mode.c cmd-delete-buffer.c 
                         cmd-detach-client.c cmd-display-message.c 
                         cmd-down-pane.c cmd-find-window.c cmd-generic.c 
                         cmd-has-session.c cmd-if-shell.c 
                         cmd-kill-pane.c cmd-kill-server.c 
                         cmd-kill-session.c cmd-kill-window.c 
                         cmd-last-window.c cmd-link-window.c 
                         cmd-list-buffers.c cmd-list-clients.c 
                         cmd-list-commands.c cmd-list-keys.c 
                         cmd-list-sessions.c cmd-list-windows.c 
                         cmd-list.c cmd-load-buffer.c cmd-lock-server.c 
                         cmd-move-window.c cmd-new-session.c 
                         cmd-new-window.c cmd-next-layout.c 
                         cmd-next-window.c cmd-paste-buffer.c 
                         cmd-previous-layout.c cmd-previous-window.c 
                         cmd-refresh-client.c cmd-rename-session.c 
                         cmd-rename-window.c cmd-resize-pane.c 
                         cmd-respawn-window.c cmd-rotate-window.c 
                         cmd-save-buffer.c cmd-scroll-mode.c 
                         cmd-select-layout.c cmd-select-pane.c 
                         cmd-select-prompt.c cmd-select-window.c 
                         cmd-send-keys.c cmd-send-prefix.c 
                         cmd-server-info.c cmd-set-buffer.c 
                         cmd-set-option.c cmd-set-password.c 
                         cmd-set-window-option.c cmd-show-buffer.c 
                         cmd-show-options.c cmd-show-window-options.c 
                         cmd-source-file.c cmd-split-window.c 
                         cmd-start-server.c cmd-suspend-client.c 
                         cmd-swap-pane.c cmd-swap-window.c 
                         cmd-switch-client.c cmd-unbind-key.c 
                         cmd-unlink-window.c cmd-up-pane.c cmd.c 
                         server-fn.c server-msg.c tmux.c tmux.h 

Log message:
Make all messages sent between the client and server fixed size.

This is the first of two changes to make the protocol more resilient and less
sensitive to other changes in the code, particularly with commands. The client
now packs argv into a buffer and sends it to the server for parsing, rather
than doing it itself and sending the parsed command data.

As a side-effect this also removes a lot of now-unused command marshalling
code.

Mixing a server without this change and a client with or vice versa will cause
tmux to hang or crash, please ensure that tmux is entirely killed before
upgrading.

Reply via email to