summaryrefslogtreecommitdiffstats
path: root/job.c
AgeCommit message (Collapse)Author
2010-08-29Sync OpenBSD patchset 751:Tiago Cunha
Do not call event_del() for signals after fork(), just use sigaction() directly instead - calling libevent functions after fork() w/o event_reinit() is a bad idea, even if in this case it was harmless.
2010-05-14Sync OpenBSD patchset 696:Tiago Cunha
Make signal handler setup/teardown two common functions instead of six, and reset SIGCHLD after fork to fix problems with some shells. From Romain Francoise.
2010-04-06Run job commands explicitly in the global enviroment (which can beNicholas Marriott
modified with setenv -g) rather than with the environment tmux started with.
2010-02-26Sync OpenBSD patchset 655:Tiago Cunha
Typo fix from Tim van der Molen.
2009-12-04Sync OpenBSD patchset 581:Tiago Cunha
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-11-28Sync OpenBSD patchset 567:Tiago Cunha
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output.
2009-11-08Sync OpenBSD patchset 494:Tiago Cunha
Add back JOB_PERSIST checks that got lost.
2009-11-08Sync OpenBSD patchset 493:Tiago Cunha
Switch jobs over to use a bufferevent.
2009-11-08Sync OpenBSD patchset 491:Tiago Cunha
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-02Sync OpenBSD patchset 475:Tiago Cunha
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-10-23Sync OpenBSD patchset 431:Tiago Cunha
Remove unused function.
2009-10-21Getting the read and write ends of the pipe the right way round is usuallyNicholas Marriott
recommended. DOH.
2009-10-12Sync OpenBSD patchset 384:Tiago Cunha
Switch run-shell over to queue the command in the background like #().
2009-10-12Sync OpenBSD patchset 383:Tiago Cunha
There isn't much point in having a free function if it isn't used. Also allow a NULL tree.
2009-10-12Sync OpenBSD patchset 382:Tiago Cunha
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-12Sync OpenBSD patchset 379:Tiago Cunha
Put all jobs on a global all_jobs list and use that in server.c instead of running through all the clients.
2009-10-11Do not include paths.h, since it's OS-dependent, due to OpenBSD patchset 374.Tiago Cunha
2009-10-11Sync OpenBSD patchset 374:Tiago Cunha
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.