summaryrefslogtreecommitdiffstats
path: root/client.c
AgeCommit message (Collapse)Author
2015-04-25Merge branch 'obsd-master'Thomas Adam
2015-04-24Set up signal handler earlier so that we don't get zombies, reported bynicm
sobrado@.
2015-04-22Merge branch 'obsd-master'Thomas Adam
2015-04-21Simplify error messages when socket connect fails, suggested by "Karthik K".nicm
2015-04-19Merge branch 'obsd-master'Thomas Adam
2015-03-31Fix some format specifier nits, from Ben Boeckel.nicm
2014-11-08No need for $Id$ now.Nicholas Marriott
2014-10-21Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile cmd-list-commands.c cmd-suspend-client.c job.c tmux.h xmalloc.c
2014-10-20Tidy up some includes.nicm
2014-10-01Call waitpid on SIGCHLD even if client not attached, it is possible (onnicm
very slow platforms) for the first daemon() child to still be running when client_attached is set so we end up with a zombie. From J Raynor.
2014-09-25Merge branch 'obsd-master'Thomas Adam
2014-09-01Various minor style and spacing nits.nicm
2014-08-09Merge branch 'obsd-master'Thomas Adam
Conflicts: client.c
2014-07-21lockf is entirely useless and it was a mistake to change to it, go backnicm
to using flock which actually works sensibly. Also always retry the lock to fix a potential race, and add some extra logging.
2014-07-13An EOF is a good reason to close a connection.krw
ok nicm@
2014-04-30Merge branch 'obsd-master'Thomas Adam
2014-04-29fcntl.h is still needed here.nicm
2014-04-23Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile tmux.1 window.c
2014-04-17Remove some unnecessary includes and fix a typo.nicm
2014-01-20Merge branch 'obsd-master'Thomas
2014-01-09Fix a memory/fd leak reported by Tiago Cunha.nicm
2014-01-09Three small changes from Tiago Cunha:nicm
- Check for truncation when copying path. - Don't need to use a temporary buffer in screen_set_title. - Include strerror in output when connecting to server fails.
2013-11-14Merge branch 'obsd-master'Thomas Adam
2013-11-13from nicm: : handle msgbuf_write() returning EAGAINbenno
2013-10-10Use format_get_command() and some spacing tweaks.nicm
2013-10-10We accidentally haven't been using $TMUX to work out the session for anicm
while and in fact it is less useful that using the client ttyname. So don't bother and don't pass it from the client. If we need it in future it is in c->environ.
2013-10-10Show session name in detached message. Requested by somebody a fewnicm
months ago who didn't bother testing it. But it works for me anyway.
2013-10-10Don't look at string[length - 1] if length == 0.nicm
2013-10-10Alter how tmux handles the working directory to internally use filenicm
descriptors rather than strings. - Each session still has a current working directory. - New sessions still get their working directory from the client that created them or its attached session if any. - New windows are created by default in the session working directory. - The -c flag to new, neww, splitw allows the working directory to be overridden. - The -c flag to attach let's the session working directory be changed. - The default-path option has been removed. To get the equivalent to default-path '.', do: bind c neww -c $PWD To get the equivalent of default-path '~', do: bind c neww -c ~ This also changes the client identify protocol to be a set of messages rather than one as well as some other changes that should make it easier to make backwards-compatible protocol changes in future.
2013-10-10Similarly for MSG_COMMAND - allow full imsg limit not arbitrary 2048.nicm
2013-10-10Remove CMD_SENDENVIRON.nicm
2013-10-06We accidentally haven't been using $TMUX to work out the session for a whileNicholas Marriott
and in fact it is less useful that using the client ttyname. So don't bother and don't pass it from the client. If we need it in future it is in c->environ.
2013-10-06Show session name in detached message. Requested by somebody a few months agoNicholas Marriott
who didn't bother testing it. But it works for me anyway.
2013-10-06Don't look at string[length - 1] if length == 0.Nicholas Marriott
2013-10-06Alter how tmux handles the working directory to internally use file descriptorsNicholas Marriott
rather than strings. - Each session still has a current working directory. - New sessions still get their working directory from the client that created them or its attached session if any. - New windows are created by default in the session working directory. - The -c flag to new, neww, splitw allows the working directory to be overridden. - The -c flag to attach let's the session working directory be changed. - The default-path option has been removed. To get the equivalent to default-path '.', do: bind c neww -c $PWD To get the equivalent of default-path '', do: bind c neww -c '#{pane_current_path}' The equivalent of default-path '~' is left as an exercise for the reader. This also changes the client identify protocol to be a set of messages rather than one as well as some other changes that should make it easier to make backwards-compatible protocol changes in future.
2013-10-06Similarly for MSG_COMMAND - allow full imsg limit not arbitrary 2048.Nicholas Marriott
2013-10-06Instead of fixed size buffers for some messages, send only the string length.Nicholas Marriott
2013-10-06Merge IDENTIFY_* flags with CLIENT_* flags.Nicholas Marriott
2013-10-06Remove CMD_SENDENVIRON.Nicholas Marriott
2013-07-12Add support for Cgywin, apparently it is enough just to open the tty again inNicholas Marriott
the server and fd passing is not necessary. Needs some ifdefs unfortunately but no way around that and some of them can go next time we're willing to do a protocol bump. Patch from J Raynor jxraynor at gmail dot com.
2013-04-23Merge branch 'obsd-master'Thomas Adam
Sync from OpenBSD.
2013-04-22Use lockf which is more portable than flock, from Dagobert Michelsen.Nicholas Marriott
2013-03-25We ignore SIGWINCH until ready, so send a MSG_RESIZE immediately whenNicholas Marriott
becoming ready.
2013-03-25Rename session idx to session id throughout and add $ prefix to targetsNicholas Marriott
to use it, extended from a diff from George Nachman.
2013-03-25Send DSC 1000p at the beginning of a -CC client's lifetime and ST andNicholas Marriott
the end, from George Nachman.
2013-03-24Add a command queue to standardize and simplify commands that call otherNicholas Marriott
commands and allow a command to block execution of subsequent commands. This allows run-shell and if-shell to be synchronous which has been much requested. Each client has a default command queue and commands are consumed one at a time from it. A command may suspend execution from the queue by returning CMD_RETURN_WAIT and then resume it by calling cmd_continue() - for example run-shell does this from the callback that is fired after the job is freed. When the command queue becomes empty, command clients are automatically exited (unless attaching). A callback is also fired - this is used for nested commands in, for example, if-shell which can block execution of the client's cmdq until a new cmdq becomes empty. Also merge all the old error/info/print functions together and lose the old curclient/cmdclient distinction - a cmdq is bound to one client (or none if in the configuration file), this is a command client if c->session is NULL otherwise an attached client.
2013-03-22No more lint means no more ARGSUSED.Nicholas Marriott
2013-03-11Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-codeNicholas Marriott
2013-03-11We ignore SIGWINCH until ready, so send a MSG_RESIZE immediately when becomingNicholas Marriott
ready.
2013-03-07Rename session idx to session id throughout and add $ prefix to targets to useNicholas Marriott
it, extended from a diff from George Nachman.