summaryrefslogtreecommitdiffstats
path: root/server-client.c
AgeCommit message (Collapse)Author
2015-10-31Merge branch 'obsd-master'Thomas Adam
Conflicts: server.c
2015-10-31The output log is only useful once and it means creating a file, so opennicm
it once at startup instead of in every call to tty_open.
2015-10-31Merge branch 'obsd-master'Thomas Adam
2015-10-31Because pledge(2) does not allow us to pass directory file descriptorsnicm
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).
2015-10-28Merge branch 'obsd-master'Thomas Adam
2015-10-28Like options, move the environ struct into environ.c.nicm
2015-10-27Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile client.c server-client.c server.c tmux.c tmux.h
2015-10-27Move struct options into options.c.nicm
2015-10-27Break the common process set up, event loop and imsg dispatch codenicm
between server and client out into a separate internal API. This will make it easier to add another process.
2015-10-27Merge branch 'obsd-master'Thomas Adam
2015-10-26If a mouse event has no key binding, pass it through to the pane itnicm
happened in, not the active pane like normal key presses. Fixes problems seen by Enrico Ghirardi.
2015-10-26Merge branch 'obsd-master'Thomas Adam
2015-10-26Some extra logging of where keys are actually going.nicm
2015-10-25Merge branch 'obsd-master'Thomas Adam
Conflicts: cmd-find.c
2015-10-23Pasting mouse escape sequences is unlikely, so skip them when workingnicm
out whether the user is pasting.
2015-10-22Merge branch 'obsd-master'Thomas Adam
2015-10-22Log identify messages.nicm
2015-10-21Merge branch 'obsd-master'Thomas Adam
2015-10-20Use client pointer not file descriptor in logging.nicm
2015-10-20Merge branch 'obsd-master'Thomas Adam
2015-10-20The table could change when retrying so don't save it at start ofnicm
server_client_handle_key.
2015-10-18Merge branch 'obsd-master'Thomas Adam
2015-10-18Pass current directory as a string rather than a file descriptor becausenicm
pledge doesn't let us pass directory file descriptors.
2015-09-17Merge branch 'obsd-master'Thomas Adam
2015-09-16Rename cmd_q dead flag to a general flags bitmask (will be more flags later).nicm
2015-09-14Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile
2015-09-14Make refresh-client force update of jobs, from Sina Siadat.nicm
2015-09-06Merge branch 'obsd-master'Thomas Adam
Conflicts: cfg.c tmux.c
2015-09-01Tweak some error messages/comments.nicm
2015-08-30Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile format.c
2015-08-30Some style nits and dead assignments.nicm
2015-08-29We already loop over the windows in server_client_loop, so don't do itnicm
again in server_loop just to check names.
2015-08-28Merge branch 'obsd-master'Thomas Adam
2015-08-28Merge branch 'obsd-master'Thomas Adam
2015-08-28Make session_update_activity more useful and use it in more places.nicm
2015-08-28Run status update on a per-client timer at status-interval.nicm
2015-07-29Merge branch 'obsd-master'Thomas Adam
2015-07-29status_out and associated data structures are no longer used.nicm
2015-07-17Merge branch 'obsd-master'Thomas Adam
2015-07-17Initialize client fd to -1 as well, from Bobby Powers.nicm
2015-07-13Merge branch 'obsd-master'Thomas Adam
2015-07-13Fix line endings.nicm
2015-07-13Initialize cwd fd to -1 so that we don't close fd 0 if the client isnicm
destroyed before it is changed. Also allow ttyname() to fail. Fixes problems when running out of file descriptors reported by Bruno Sutic.
2015-06-14Merge branch 'obsd-master'Thomas Adam
2015-06-14Add a format for client PID (client_pid) and server PID (pid). Diff fornicm
client_pid from Thomas Adam.
2015-06-07Merge branch 'obsd-master'Thomas Adam
Conflicts: client.c tmux.1 tmux.c
2015-06-05Change deref to the more sensible unref, and add a couple I missed before.nicm
2015-06-05Instead of putting dead clients on a list and checking it every loop,nicm
use event_once to queue a callback to deal with them. Also dead clients with references would never actually be freed because the wrap-up functions (the callback for stdin, or status_prompt_clear) would never be called. So call them in server_client_lost.
2015-06-04Move the nested check from client to server and compare the client ttynicm
name to all the pane pty names instead of comparing socket paths. This means that "new -d" will work without unsetting $TMUX.
2015-05-27Merge branch 'obsd-master'Thomas Adam