summaryrefslogtreecommitdiffstats
path: root/client.c
AgeCommit message (Collapse)Author
2020-01-29Merge branch 'obsd-master'Thomas Adam
2020-01-29Warn if a message type that is no longer used is received.nicm
2019-12-16Merge branch 'obsd-master'Thomas Adam
2019-12-16Need to include message size in the maximum buffer calculation.nicm
2019-12-16Instead of using large buffers in imsgs, add the data or path onto the end.nicm
2019-12-13Merge branch 'obsd-master'Thomas Adam
2019-12-13Need to check in the error callback also.nicm
2019-12-13Do not spin waiting for exit, instead check in the write callback.nicm
2019-12-12Merge branch 'obsd-master'Thomas Adam
2019-12-12Rewrite the code for reading and writing files. Now, if the client isnicm
not attached, the server process asks it to open the file, similar to how works for stdin, stdout, stderr. This makes special files like /dev/fd/X work (used by some shells). stdin, stdout and stderr and control mode are now just special cases of the same mechanism. This will also make it easier to use for other commands that read files such as source-file.
2019-07-26Merge branch 'obsd-master'Thomas Adam
2019-07-26Change "lost server" message to "server exited unexpectedly", from Nealnicm
McBurnett in GitHub issue 1857.
2019-06-28Merge branch 'obsd-master'Thomas Adam
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2019-05-25Merge branch 'obsd-master'Thomas Adam
2019-05-25Merge cmd_list_parse into cmd-parse.y so it can use the new aliasnicm
processing code.
2018-11-22Merge branch 'obsd-master'Thomas Adam
2018-11-22Do not use PWD unless it actually matches the real working directory.nicm
2018-06-07Linux: include sys/file.h for flock()Thomas Adam
2018-04-26Merge branch 'obsd-master'Thomas Adam
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.guenther
Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
2018-01-01Merge branch 'obsd-master'Thomas Adam
2018-01-01Prefer PWD for current directory if present in client, from Wei Zhao innicm
GitHub issue 1183.
2017-12-19Merge branch 'obsd-master'Thomas Adam
2017-12-19Report better error from server when socket create fails, GitHub issuenicm
1201.
2017-12-19Merge branch 'obsd-master'Thomas Adam
2017-12-18Do not try to put more in command message than will fit when sendingnicm
(the server will treat as a fatal error). GitHub issue 1200.
2017-07-14Merge branch 'obsd-master'Thomas Adam
2017-07-14Because ignore SIGCHLD early, letting signal_del restore it doesn't worknicm
correctly, so set it explicitly back to default (and the others for good measure).
2017-07-12Merge branch 'obsd-master'Thomas Adam
Conflicts: cmd-pipe-pane.c proc.c tmux.c window.c
2017-07-12Move signal code into proc.c.nicm
2017-07-12Make shell_command a global like other stuff rather than making it annicm
exception and using callback argument.
2017-01-24Merge branch 'obsd-master'Thomas Adam
2017-01-24Add support for custom command aliases, this is an array option whichnicm
contains items of the form "alias=command". This is consulted when an unknown command is parsed.
2017-01-23Define away pledge() on !OpenBSD.Nicholas Marriott
2017-01-23Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile tmux.c
2017-01-23Open /dev/ptm before pledge() and save it to be used for PTMGET laternicm
(this means inlining forkpty()). ok deraadt
2017-01-20Merge branch 'obsd-master'Thomas Adam
2017-01-20Print error rather than fatal() if tcgetattr() fails, which is much morenicm
useful to user.
2017-01-16Revert WIP parts of previous I didn't mean to commit yet.nicm
2017-01-16getopt() has a struct option so just return to using options_entry.nicm
2017-01-13Merge branch 'obsd-master'Thomas Adam
2017-01-13Add -E to detach-client to exec a command to replace the client insteadnicm
of exiting it, useful if tmux wasn't exec'd itself. From Jenna Magius.
2016-10-04Merge branch 'obsd-master'Thomas Adam
2016-10-03Remove some dead code in cmd-move-window.c and make a load of localnicm
functions static.
2016-01-19Merge branch 'obsd-master'Thomas Adam
2016-01-19I no longer use my SourceForge address so replace it.nicm
2015-11-25Merge branch 'obsd-master'Thomas Adam
Conflicts: log.c proc.c tmux.c
2015-11-25Don't print error if none to print.nicm
2015-11-24Shell command from -c doesn't have to be global, pass it as an argument.nicm