Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-09-26 | Two new options: | Nicholas Marriott | |
- server option "exit-unattached" makes the server exit when no clients are attached, even if sessions are present; - session option "destroy-unattached" destroys a session once no clients are attached to it. These are useful for preventing tmux remaining in the background where it is undesirable and when using tmux as a login shell to keep a limit on new sessions. | |||
2010-09-26 | Modify the permissions on the socket when adding or removing +x to show | Nicholas Marriott | |
attached sessions, rather than replacing them. | |||
2010-08-19 | Do not call event_del() for signals after fork(), just use sigaction() | Nicholas Marriott | |
directly instead - calling libevent functions after fork() w/o event_reinit() is a bad idea, even if in this case it was harmless. | |||
2010-08-04 | switch back to kqueue for now, since (a) kqueue has been fixed to deal | Theo de Raadt | |
with strange devices and (b) since there appears to be a bull in the poll code in libevent as well... requested by nicm who is away | |||
2010-07-24 | kqueue(2) is currently broken when used with /dev/null and a few other | Nicholas Marriott | |
devices. An upcoming fix for some problems with the client stdout/stderr handling relies on it working, so make tmux force libevent to use poll(2) via EVENT_NOKQUEUE, until we have fixed kqueue. | |||
2010-06-21 | Give tmux sockets (but not the containing folder) group | Nicholas Marriott | |
permissions. This allows hardlinks to the sockets to be used more easily. | |||
2010-05-04 | Put this back in with the initialisation in the right order. | Nicholas Marriott | |
2010-05-04 | Revert last change, it appears to be broken somehow. | Nicholas Marriott | |
2010-05-03 | Make signal handler setup/teardown two common functions instead of six, | Nicholas Marriott | |
and reset SIGCHLD after fork to fix problems with some shells. From Romain Francois. | |||
2010-04-06 | Merge copy mode and output mode, dropping the latter. Idea and code from | Nicholas Marriott | |
Micah Cowan. | |||
2010-03-22 | Nuke unused variable. | Nicholas Marriott | |
2010-02-06 | Use the array.h code for the causes list. | Nicholas Marriott | |
2010-02-06 | Instead of bailing out on the first configuration file error, carry on, | Nicholas Marriott | |
collecting all the errors, then start with the active window in more mode displaying them. | |||
2010-01-30 | Ignore SIGHUP as well. | Nicholas Marriott | |
2009-12-03 | Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last | Nicholas Marriott | |
time now I've configured emacs to make them displayed in really annoying colours... | |||
2009-12-02 | Close the pane if the process died due to a signal, not just if it exited | Nicholas Marriott | |
normally. | |||
2009-11-26 | Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to | Nicholas Marriott | |
the rest to reduce lint output. | |||
2009-11-13 | Destroy panes immediately rather than checking them all every loop. | Nicholas Marriott | |
2009-11-11 | Free the pane bufferevent when the fd is closed (the signal could come before | Nicholas Marriott | |
the error callback). | |||
2009-11-11 | Only need to chmod +x or -x the socket when a client is created, lost or | Nicholas Marriott | |
attached, rather than every event loop. | |||
2009-11-05 | EVLOOP_ONCE takes care of the wakeup, so no need to call event_loopexit(NULL). | Nicholas Marriott | |
2009-11-05 | Now all timers are events, there is no longer any need to wake up every 50 ms - | Nicholas Marriott | |
only wake up when an event happens. | |||
2009-11-04 | Move status timer check into the global once-per-second timer, this could maybe | Nicholas Marriott | |
be done better but one every second is better than once every 50 ms. | |||
2009-11-04 | Don't reenlist the client imsg event every loop, instead have a small function | Nicholas Marriott | |
to it and call it after the event triggers or after a imsg is added. | |||
2009-11-04 | Tell the client to exit on configuration file error. | Nicholas Marriott | |
2009-11-04 | Convert the window pane (pty master side) fd over to use a bufferevent. | Nicholas Marriott | |
The evbuffer API is very similar to the existing tmux buffer API so this was remarkably painless. Not many possible ways to do it, I suppose. | |||
2009-11-04 | Call event_init() before loading the config file, since potentially it could | Nicholas Marriott | |
set up events. | |||
2009-11-04 | Switch jobs over to use a bufferevent. | Nicholas Marriott | |
2009-11-04 | Initial changes to move tmux to libevent. | Nicholas Marriott | |
This moves the client-side loops are pretty much fully over to event-based only (tmux.c and client.c) but server-side (server.c and friends) treats libevent as a sort of clever poll, waking up after every event to run various things. Moving the server stuff over to bufferevents and timers and so on will come later. | |||
2009-11-03 | Change session and client activity and creation time members to have more | Nicholas Marriott | |
meaningful names. Also, remove the code to try and update the session activity time for the command client when a command message is received as is pointless because it des not have a session. | |||
2009-11-02 | Reorder slightly to tidy code. | Nicholas Marriott | |
2009-10-27 | Move the poll registration functions into the server-*.c files. | Nicholas Marriott | |
2009-10-26 | tabs are better; ok nicm | Theo de Raadt | |
2009-10-26 | Clear signal flags /before/ taking action and continue afterwards to reduce | Nicholas Marriott | |
chance of dropping signals. Pointed out by deraadt@. | |||
2009-10-22 | Split the server code handling clients, jobs and windows off into separate | Nicholas Marriott | |
files from server.c (merging server-msg.c into the client file) and rather than iterating over each set after poll(), allow a callback to be specified when the fd is added and just walk once over the returned pollfds calling each callback where needed. More to come, getting this in so it is tested. | |||
2009-10-13 | When a session is unattached, reset its activity timer to prevent it locking | Nicholas Marriott | |
instantly when reattached. | |||
2009-10-12 | Similarly add a tty_cursor_pane function to tidy up most of the calls. | Nicholas Marriott | |
2009-10-12 | _absolute is redundant, just use tty_region. | Nicholas Marriott | |
2009-10-12 | Cleanup: use two functions for region setting, one for absolute and one inside | Nicholas Marriott | |
pane. | |||
2009-10-11 | Add a pipe-pane command to allow a pane to be piped to a shell command, for | Nicholas Marriott | |
example: pipe-pane 'cat >~/out' No arguments stops outputing and closes the pipe; the -o flag toggles a pipe and on and off (useful for key bindings). Suggested by espie@. | |||
2009-10-11 | Switch run-shell over to queue the command in the background like #(). | Nicholas Marriott | |
2009-10-11 | Collect status from dead jobs and don't invoke the callback until both | Nicholas Marriott | |
all input (the socket is closed) and status is available. | |||
2009-10-11 | Clean up by introducing a wrapper struct for mouse clicks rather than passing | Nicholas Marriott | |
three u_chars around. As a side-effect this fixes incorrectly rejecting high cursor positions (because it was comparing them as signed char), reported by Tom Doherty. | |||
2009-10-11 | Braek some bits out of server_fill_client() that aren't really related to | Nicholas Marriott | |
polling into their own function. | |||
2009-10-10 | Put all jobs on a global all_jobs list and use that in server.c instead of | Nicholas Marriott | |
running through all the clients. | |||
2009-10-10 | Rather than running status-left, status-right and window title #() with popen | Nicholas Marriott | |
immediately every redraw, queue them up and run them in the background, starting each once every status-interval. The actual status line uses the output from the last run. This brings several advantages: - tmux itself may be called from inside #() without causing the server to hang; - likewise, sleep or similar doesn't cause the server to block; - commands aren't run excessively often when redrawing; - commands shared by status-left and status-right, or used multiple times, will only be run once. run-shell and if-shell still use system()/popen() but will be changed over to use this too later. | |||
2009-10-10 | New option, mouse-select-pane. If on, the mouse may be used to select the | Nicholas Marriott | |
current pane. Suggested by sthen@ and also by someone else ages ago who I have forgotten. | |||
2009-10-10 | Add "grouped sessions" which have independent name, options, current window and | Nicholas Marriott | |
so on but where the linked windows are synchronized (ie creating, killing windows and so on are mirrored between the sessions). A grouped session may be created by passing -t to new-session. Had this around for a while, tested by a couple of people. | |||
2009-10-10 | Support for individual session idle time locking. May be enabled by turning off | Nicholas Marriott | |
the lock-server option (it is on by default). When this is off, each session locks when it has been idle for the lock-after-time setting. When on, the entire server locks when ALL sessions have been idle for their individual lock-after-time settings. This replaces one global-only option (lock-after-time) with another (lock-server), but the default behaviour is usually preferable so there don't seem to be many alternatives. Diff/idea largely from Thomas Adam, tweaked by me. | |||
2009-10-10 | Instead of passing a struct pollfd ** around through various functions, build | Nicholas Marriott | |
them into a tree and then convert into a flat poll array before and after poll. This adds a little code but should reduce annoying problems with ordering when adding new things that also need to be polled. |