aboutsummaryrefslogtreecommitdiff
path: root/client.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master'Thomas Adam2017-01-24
|\
| * Add support for custom command aliases, this is an array option whichnicm2017-01-24
| | | | | | | | | | contains items of the form "alias=command". This is consulted when an unknown command is parsed.
* | Define away pledge() on !OpenBSD.Nicholas Marriott2017-01-23
| |
* | Merge branch 'obsd-master'Thomas Adam2017-01-23
|\| | | | | | | | | | | Conflicts: Makefile tmux.c
| * Open /dev/ptm before pledge() and save it to be used for PTMGET laternicm2017-01-23
| | | | | | | | | | | | (this means inlining forkpty()). ok deraadt
* | Merge branch 'obsd-master'Thomas Adam2017-01-20
|\|
| * Print error rather than fatal() if tcgetattr() fails, which is much morenicm2017-01-20
| | | | | | | | useful to user.
| * Revert WIP parts of previous I didn't mean to commit yet.nicm2017-01-16
| |
| * getopt() has a struct option so just return to using options_entry.nicm2017-01-16
| |
* | Merge branch 'obsd-master'Thomas Adam2017-01-13
|\|
| * Add -E to detach-client to exec a command to replace the client insteadnicm2017-01-13
| | | | | | | | of exiting it, useful if tmux wasn't exec'd itself. From Jenna Magius.
* | Merge branch 'obsd-master'Thomas Adam2016-10-04
|\|
| * Remove some dead code in cmd-move-window.c and make a load of localnicm2016-10-03
| | | | | | | | functions static.
* | Merge branch 'obsd-master'Thomas Adam2016-01-19
|\|
| * I no longer use my SourceForge address so replace it.nicm2016-01-19
| |
* | Merge branch 'obsd-master'Thomas Adam2015-11-25
|\| | | | | | | | | | | | | Conflicts: log.c proc.c tmux.c
| * Don't print error if none to print.nicm2015-11-25
| |
| * Shell command from -c doesn't have to be global, pass it as an argument.nicm2015-11-24
| |
| * Do lock failures slightly better, return a special value so we don'tnicm2015-11-24
| | | | | | | | unlink the wrong thing.
| * Actually show something (even if it not that helpful) if the servernicm2015-11-24
| | | | | | | | | | fails to start (for example if it can't create the socket), rather than hanging or showing nothing.
| * Tidy the code that works out the socket path, and just use the full pathnicm2015-11-24
| | | | | | | | in the global socket_path rather than copying it.
| * Switch a fprintf to a fatal, and wrap some long lines.nicm2015-11-24
| |
* | Merge branch 'obsd-master'Thomas Adam2015-11-18
|\|
| * Use __unused rather than rolling our own.nicm2015-11-18
| |
* | Merge branch 'obsd-master'Thomas Adam2015-11-15
|\| | | | | | | | | | | Conflicts: server.c tmux.c
| * Accidentally turned off pledge, turn it back on.nicm2015-11-15
| |
* | Merge branch 'obsd-master'Thomas Adam2015-11-14
|\| | | | | | | | | | | Conflicts: server.c tmux.c
| * Push stdout and stderr to clients more aggressively, and add an event tonicm2015-11-14
| | | | | | | | continue if the send fails.
* | Merge branch 'obsd-master'Thomas Adam2015-10-31
|\| | | | | | | | | Conflicts: server.c
| * Don't shift version out of peerid, it is needed later.nicm2015-10-31
| |
* | Merge branch 'obsd-master'Thomas Adam2015-10-31
|\|
| * Because pledge(2) does not allow us to pass directory file descriptorsnicm2015-10-31
| | | | | | | | | | | | | | | | | | around, we can't use file descriptors for the working directory because we will be unable to pass it to a privileged process to tell it where to read or write files or spawn children. So move tmux back to using strings for the current working directory. We try to check it exists with access() when it is set but ultimately fall back to ~ if it fails at time of use (or / if that fails too).
* | Merge branch 'obsd-master'Thomas Adam2015-10-28
|\|
| * Like options, move the environ struct into environ.c.nicm2015-10-28
| |
* | Merge branch 'obsd-master'Thomas Adam2015-10-27
|\| | | | | | | | | | | | | | | | | | | Conflicts: Makefile client.c server-client.c server.c tmux.c tmux.h
| * Move struct options into options.c.nicm2015-10-27
| |
| * Break the common process set up, event loop and imsg dispatch codenicm2015-10-27
| | | | | | | | | | between server and client out into a separate internal API. This will make it easier to add another process.
* | Merge branch 'obsd-master'Thomas Adam2015-10-18
|\|
| * Pass current directory as a string rather than a file descriptor becausenicm2015-10-18
| | | | | | | | pledge doesn't let us pass directory file descriptors.
* | __OpenBSD__ around pledge().Nicholas Marriott2015-10-17
| |
* | Merge branch 'obsd-master'Thomas Adam2015-10-17
|\|
| * Add pledge "stdio unix sendfd proc exec tty" to tmux client process,nicm2015-10-17
| | | | | | | | "sendfd" is dropped after first message from the server.
* | Merge branch 'obsd-master'Thomas Adam2015-10-11
|\|
| * Userspace doesn't need to use SUN_LEN(): connect() and bind() must acceptguenther2015-10-11
| | | | | | | | | | | | sizeof(struct sockaddr_un), so do the simple, portable thing ok beck@ deraadt@
* | Merge branch 'obsd-master'Thomas Adam2015-09-24
|\|
| * Don't leak fd and path on failure.nicm2015-09-24
| |
* | Merge branch 'obsd-master'Thomas Adam2015-09-09
|\|
| * No need to keep global options around for client which doesn't use them.nicm2015-09-09
| |
* | Merge branch 'obsd-master'Thomas Adam2015-09-06
|\| | | | | | | | | | | Conflicts: cfg.c tmux.c
| * Login shell can be a client flag, and move the exec code into client.c.nicm2015-08-30
| |