History log of /openbsd/usr.bin/tmux/client.c (Results 151 – 162 of 162)
Revision Date Author Comments
# fd234c13 11-Aug-2009 nicm <nicm@openbsd.org>

Switch tmux to use imsg. This is the last major change to make the
client-server protocol more resilient and make the protocol versioning work
properly. In future, the only things requiring a protoco

Switch tmux to use imsg. This is the last major change to make the
client-server protocol more resilient and make the protocol versioning work
properly. In future, the only things requiring a protocol version bump will be
changes in the message structs, and (when both client and server have this
change) mixing different versions should nicely report an error message.

As a side effect this also makes the code tidier, fixes a problem with the way
errors reported during server startup were handled, and supports fd passing
(which will be used in future).

Looked over by eric@, thanks.

Please note that mixing a client with this change with an older server or vice
versa may cause tmux to crash or hang - tmux should be completely exited before
upgrading.

show more ...


# 6f7d62eb 08-Aug-2009 nicm <nicm@openbsd.org>

Infrastructure and commands to manage the environment for processes started
within tmux.

There is a global environment, copied from the external environment when the
server is started and each sesss

Infrastructure and commands to manage the environment for processes started
within tmux.

There is a global environment, copied from the external environment when the
server is started and each sesssion has an (initially empty) session
environment which overrides it.

New commands set-environment and show-environment manipulate or display the
environments.

A new session option, update-environment, is a space-separated list of
variables which are updated from the external environment into the session
environment every time a new session is created - the default is DISPLAY.

show more ...


# 86cee480 08-Aug-2009 nicm <nicm@openbsd.org>

Tidy function a little by using a temporary variable.


# 5b522837 30-Jul-2009 nicm <nicm@openbsd.org>

There aren't many client message types or code to handle them so get rid of the
lookup table and use a switch, merge the tiny handler functions into it, and
move the whole lot to client.c.

Also chan

There aren't many client message types or code to handle them so get rid of the
lookup table and use a switch, merge the tiny handler functions into it, and
move the whole lot to client.c.

Also change client_msg_dispatch to consume as many messages as possible and
move the call to it to the right place so it checks for signals afterwards.

Prompted by suggestions from eric@.

show more ...


# 6dc9c947 30-Jul-2009 nicm <nicm@openbsd.org>

Tell the server when the client gets SIGTERM so it can clean up the terminal
properly, rather than just exiting.


# 454be688 26-Jul-2009 nicm <nicm@openbsd.org>

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 wi

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.

show more ...


# 51e43aa6 23-Jul-2009 nicm <nicm@openbsd.org>

None of the server message functions return anything but 0, so make them all
void.

Also remove a leftover variable in client.c.


# d9acbdf8 23-Jul-2009 nicm <nicm@openbsd.org>

Tidy client message return slightly: convert flags into an enum, and merge
error string into struct client_ctx as well.


# b37345b4 22-Jul-2009 nicm <nicm@openbsd.org>

Pass a set of flags into client_init rather than just a start_server
variable. Only one flag now but more to come later.


# 9b1fc963 25-Jun-2009 nicm <nicm@openbsd.org>

Remove some dead assignments, found by sthen with clang.


# d76ffb1b 05-Jun-2009 nicm <nicm@openbsd.org>

Call setproctitle earlier in the client, and include the socket name. Makes it
easier to match client to server in ps/pgrep when using several servers.


# 311827fb 01-Jun-2009 nicm <nicm@openbsd.org>

Import tmux, a terminal multiplexor allowing (among other things) a single
terminal to be switched between several different windows and programs
displayed on one terminal be detached from one termin

Import tmux, a terminal multiplexor allowing (among other things) a single
terminal to be switched between several different windows and programs
displayed on one terminal be detached from one terminal and moved to another.

ok deraadt pirofti

show more ...


1234567