summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/client.c
AgeCommit message (Expand)Author
2012-07-10xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott
2012-06-18Actually write all the data to stdout/stderr.Nicholas Marriott
2012-06-18Add a skeleton mode to tmux (called "control mode") that let's tmuxNicholas Marriott
2012-05-25Simplify logging and just fprintf(stderr, ...) for early errors.Nicholas Marriott
2012-05-21Instead of passing stdin/stdout/stderr file descriptors over imsg andNicholas Marriott
2012-04-23Add missing prototype.Nicholas Marriott
2012-04-23Use an enum for client exit reasons, from George Nachman.Nicholas Marriott
2012-03-24Add sys/file.h.Nicholas Marriott
2012-03-19Move MSG_IDENTIFY to the last sent by the client, this will be needed byNicholas Marriott
2012-03-09Use a lock file and flock() to serialize server start, avoids problemsNicholas Marriott
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