aboutsummaryrefslogtreecommitdiff
path: root/client.c
Commit message (Collapse)AuthorAge
* There aren't many client message types or code to handle them so get rid of theNicholas Marriott2009-07-30
| | | | | | | | | | 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@.
* Tell the server when the client gets SIGTERM so it can clean up the terminalNicholas Marriott2009-07-30
| | | | properly, rather than just exiting.
* Make all messages sent between the client and server fixed size.Nicholas Marriott2009-07-26
| | | | | | | | | | | | | | 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.
* None of the server message functions return anything but 0, so make them allNicholas Marriott2009-07-23
| | | | | | void. Also remove a leftover variable in client.c.
* Tidy client message return slightly: convert flags into an enum, and mergeNicholas Marriott2009-07-23
| | | | error string into struct client_ctx as well.
* Pass a set of flags into client_init rather than just a start_serverNicholas Marriott2009-07-22
| | | | variable. Only one flag now but more to come later.
* Remove some dead assignments, found by sthen with clang.Nicholas Marriott2009-06-25
|
* Call setproctitle earlier in the client, and include the socket name. Makes itNicholas Marriott2009-06-05
| | | | easier to match client to server in ps/pgrep when using several servers.
* Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott2009-06-01
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