Code Log


Commit Date  
[c5fefd] (5.0 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 655:

Typo fix from Tim van der Molen.

2010-02-26 13:35:04 View
Download
[cc094f] (5.0 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 581:

Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying
colours...

2009-12-04 22:14:47 View
Download
[c12e0b] (5.0 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 567:

Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to
the rest to reduce lint output.

2009-11-28 14:50:37 View
Download
[7851bb] (5.0 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 494:

Add back JOB_PERSIST checks that got lost.

2009-11-08 22:56:54 View
Download
[53ef4c] (4.9 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 493:

Switch jobs over to use a bufferevent.

2009-11-08 22:56:04 View
Download
[dd3698] (4.2 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 491:

Initial changes to move tmux to libevent.

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-08 22:40:36 View
Download
[053e40] (4.2 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 475:

Add a flag for jobs that shouldn't be freed after they've died and use it for
status jobs, then only kill those jobs when status-left, status-right or
set-titles-string is changed.

Fixes problems with changing options from inside #().

2009-11-02 21:38:27 View
Download
[315527] (4.0 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 431:

Remove unused function.

2009-10-23 17:27:40 View
Download
[4afecb] (4.1 kB) by Nicholas Marriott Nicholas Marriott

Getting the read and write ends of the pipe the right way round is usually
recommended. DOH.

2009-10-21 07:37:11 View
Download
[197f8b] (4.1 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 384:

Switch run-shell over to queue the command in the background like #().

2009-10-12 00:25:25 View
Download
[c8d060] (4.1 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 383:

There isn't much point in having a free function if it isn't used.

Also allow a NULL tree.

2009-10-12 00:22:17 View
Download
[1b03bc] (4.0 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 382:

Collect status from dead jobs and don't invoke the callback until both
all input (the socket is closed) and status is available.

2009-10-12 00:21:08 View
Download
[d7fa9b] (4.0 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 379:

Put all jobs on a global all_jobs list and use that in server.c instead of
running through all the clients.

2009-10-12 00:12:33 View
Download
[3e93bd] (3.8 kB) by Tiago Cunha Tiago Cunha

Do not include paths.h, since it's OS-dependent, due to OpenBSD patchset 374.

2009-10-11 23:59:34 View
Download
[bc2361] (3.8 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 374:

Rather than running status-left, status-right and window title #() with popen
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-11 23:55:26 View
Download