summaryrefslogtreecommitdiffstats
path: root/cmd-pipe-pane.c
AgeCommit message (Collapse)Author
2024-02-13Merge branch 'obsd-master'Thomas Adam
2024-02-13Do not allow paste into panes which have exited, from Romain Francoisenicm
in GitHub issue 3830.
2022-05-30Do not allow pipe-pane on dead panes, from Anindya Mukherjee, GitHubnicm
issue 3174.
2022-05-02Do not allow pipe-pane on dead panes, from Anindya Mukherjee, GitHub issueNicholas Marriott
3174.
2021-10-25Merge branch 'obsd-master' into masterThomas Adam
2021-10-24For open/openat, if the flags parameter does not contain O_CREAT, thederaadt
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert
2021-08-21Merge branch 'obsd-master' into masterThomas Adam
2021-08-21Add args parsing callback for some future work, currently unused.nicm
2021-08-20Merge branch 'obsd-master' into masterThomas Adam
2021-08-20Hide struct args behind a couple of accessor functions.nicm
2021-08-17Merge branch 'obsd-master' into masterThomas Adam
2021-08-17Fix pipe-pane usage.nicm
2020-05-21Merge branch 'obsd-master'Thomas Adam
2020-05-21Support code for control mode flow control: allow clients to havenicm
separate offsets (used and acknowleged) into the pane buffers; turn off reading from panes when no clients can accept the data; and add a -A flag to refresh-client to let clients turn receiving a pane on and off.
2020-04-14Merge branch 'obsd-master'Thomas Adam
2020-04-13Make client -c and -t handling common in cmd-queue.c and try to benicm
clearer about whether the client is the target client (must have a session) or not.
2020-04-13Merge branch 'obsd-master'Thomas Adam
2020-04-13Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make itsnicm
use more clearly defined and preparation for some future work).
2020-04-13Merge branch 'obsd-master'Thomas Adam
2020-04-13Make struct cmd local to cmd.c and move it out of tmux.h.nicm
2019-03-18Merge branch 'obsd-master'Thomas Adam
2019-03-14Store the time in the format tree rather than passing it around.nicm
2019-03-14Merge branch 'obsd-master'Thomas Adam
2019-03-14Accept 0 time as a shorthand for now to format_expand_time.nicm
2018-11-30Merge branch 'obsd-master'Thomas Adam
2018-11-30Clear PANE_EXITED flag when starting new child process in case the panenicm
has been respawned.
2018-11-19Merge branch 'obsd-master'Thomas Adam
2018-11-19evbuffer_new and bufferevent_new can both fail (when malloc fails) andnicm
return NULL. GitHub issue 1547.
2018-01-17Merge branch 'obsd-master'Thomas Adam
2018-01-16Add -I to pipe-pane to connect pane stdin as well as stdout, suggestednicm
by Kristof Kovacs in GitHub issue 1186.
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-12Block signals between forking and clearing signal handlers (or callingnicm
event_reinit) - if the child gets a signal and fires the libevent signal handler during this period it could write a signal into the parent's signal pipe. GitHub issue 1001 from Aaron van Geffen.
2017-07-12Move signal code into proc.c.nicm
2017-07-03Merge branch 'obsd-master'Thomas Adam
2017-07-03Do not close panes until process has exited and any outstanding datanicm
has been written to the pipe-pane event if there is one. GitHub issue 991.
2017-05-01Merge branch 'obsd-master'Thomas Adam
2017-05-01In order that people can use formats like #D in #() in the status linenicm
and not have to wait for an update when they change pane, we allow commands to run more than once a second if the expanded form changes. Unfortunately this can mean them being run far too often (pretty much continually) when multiple clients exist, because some formats (including #D) will always differ between clients. To avoid this, give each client its own tree of jobs which means that the same command will be different instances for each client - similar to how we have the tag to separate commands for different panes. GitHub issue 889; test case reported by Paul Johnson.
2017-04-22Merge branch 'obsd-master'Thomas Adam
2017-04-22Get rid of the extra layer of flags and cmd_prepare() and just store thenicm
CMD_FIND_* flags in the cmd_entry and call it for the command. Commands with special requirements call it themselves and update the target for hooks to use.
2017-02-03Merge branch 'obsd-master'Thomas Adam
2017-02-03Add a window or pane id "tag" to each format tree and use it to separatenicm
jobs, this means that if the same job is used for different windows or panes (for example in pane-border-format), it will be run separately for each pane.
2016-10-16Merge branch 'obsd-master'Thomas Adam
2016-10-16Mass rename struct cmd_q to struct cmdq_item and related.nicm
2016-10-15Merge branch 'obsd-master'Thomas Adam
2016-10-14Add CMD_AFTERHOOK flag to the easy commands that don't need any special ↵nicm
handling.
2016-10-12Merge branch 'obsd-master'Thomas Adam
Conflicts: format.c osdep-openbsd.c
2016-10-10Add static in cmd-* and fix a few other nits.nicm
2016-01-19Merge branch 'obsd-master'Thomas Adam