summaryrefslogtreecommitdiffstats
path: root/client.c
AgeCommit message (Expand)Author
2011-03-03Add a -P option to detach to HUP the client's parent process (usuallyNicholas Marriott
2011-01-08Move all calls to fcntl(...O_NONBLOCK) into a function and clear theNicholas Marriott
2010-10-18Merge the before and after attach client code into one in client.cNicholas Marriott
2010-10-16Trying to set FD_CLOEXEC on every fd is a lost cause, just useNicholas Marriott
2010-08-23Can't call event_del() without event_set() first - so call event_set()Nicholas Marriott
2010-08-22MSG_EXIT can now have a return code in the message, so check for thatNicholas Marriott
2010-06-28Send all three of stdin, stdout, stderr from the client to the server, so thatNicholas Marriott
2010-06-05Fix problems with window sizing seen by Raghavendra D Prabhu whenNicholas Marriott
2010-06-05This ioctl(TIOCGWINSZ) call is no longer necessary, the result is neverNicholas Marriott
2010-05-12Catch SIGHUP and terminate if running as a client. This prevents clientsJoel Sing
2010-05-04Put this back in with the initialisation in the right order.Nicholas Marriott
2010-05-04Revert last change, it appears to be broken somehow.Nicholas Marriott
2010-05-03Make signal handler setup/teardown two common functions instead of six,Nicholas Marriott
2009-12-03Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott
2009-11-26Remove a couple of unused arguments where possible, and add /* ARGSUSED */ toNicholas Marriott
2009-11-13imsg_read returns ssize_t not int, pointed out by lint via deraadt.Nicholas Marriott
2009-11-10Don't return 1 unless there was actually a problem (signal/lost server) ratherNicholas Marriott
2009-11-04Move some common code into a function.Nicholas Marriott
2009-11-04Initial changes to move tmux to libevent.Nicholas Marriott
2009-11-02Leftover unused variable :-/.Nicholas Marriott
2009-11-02There isn't much point in doing lstat before connect so instead just do connectNicholas Marriott
2009-10-26Clear signal flags /before/ taking action and continue afterwards to reduceNicholas Marriott
2009-10-21Tidy identify message send into a separate function.Nicholas Marriott
2009-10-21Client tidying: get rid of client_ctx struct in favour of two variables inNicholas Marriott
2009-10-13Do this in a better way - print messages when exiting with nonzero.Nicholas Marriott
2009-10-13Don't print exit messages when used as a login shell, requested by martynas@ aNicholas Marriott
2009-09-23Support -c like sh(1) to execute a command, useful when tmux is a loginNicholas Marriott
2009-09-23Remove the internal tmux locking and instead detach each client and run theNicholas Marriott
2009-09-23Trim some code by moving the ioctl(TIOCGWINSZ) after SIGWINCH from the clientNicholas Marriott
2009-09-23Don't attempt to open() the tty path, rely on the client sending its stdin fdNicholas Marriott
2009-09-20Regularise some fatal messages.Nicholas Marriott
2009-09-02Fix a race condition when asking a client to take over the terminal (switchingNicholas Marriott
2009-09-02That was the wrong fix. MSG_ERROR should set the error and the client shouldNicholas Marriott
2009-09-02Set exittype for error exit as well as the error string.Nicholas Marriott
2009-08-12imsg closes the fd after sending, so dup() STDIN_FILENO before passing it toNicholas Marriott
2009-08-11Have the client pass its stdin fd to the server when identifying itself andNicholas Marriott
2009-08-11Switch tmux to use imsg. This is the last major change to make theNicholas Marriott
2009-08-08Infrastructure and commands to manage the environment for processes startedNicholas Marriott
2009-08-08Tidy function a little by using a temporary variable.Nicholas Marriott
2009-07-30There aren't many client message types or code to handle them so get rid of theNicholas Marriott
2009-07-30Tell the server when the client gets SIGTERM so it can clean up the terminalNicholas Marriott
2009-07-26Make all messages sent between the client and server fixed size.Nicholas Marriott
2009-07-23None of the server message functions return anything but 0, so make them allNicholas Marriott
2009-07-23Tidy client message return slightly: convert flags into an enum, and mergeNicholas Marriott
2009-07-22Pass a set of flags into client_init rather than just a start_serverNicholas Marriott
2009-06-25Remove some dead assignments, found by sthen with clang.Nicholas Marriott
2009-06-05Call setproctitle earlier in the client, and include the socket name. Makes itNicholas Marriott
2009-06-01Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott