summaryrefslogtreecommitdiffstats
path: root/job.c
AgeCommit message (Collapse)Author
2019-06-28Merge branch 'obsd-master'Thomas Adam
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
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-10-28Merge branch 'obsd-master'Thomas Adam
2018-10-28Do not printf NULL.nicm
2018-09-27Merge branch 'obsd-master'Thomas Adam
2018-09-27Use same working directory rules for jobs as new windows rather thannicm
always starting in home, GitHub issue 1488.
2018-08-23Merge branch 'obsd-master'Thomas Adam
2018-08-23all_jobs can be static.nicm
2018-08-23Merge branch 'obsd-master'Thomas Adam
2018-08-23Move job struct into job.c.nicm
2018-03-08Merge branch 'obsd-master'Thomas Adam
2018-03-08Add a missing client-detached hook when the server shuts down, and donicm
not exit until jobs started from run-shell/if-shell have finished (add a job flags member and a flag to indicate other jobs). GitHub issue 1245.
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-06-01Merge branch 'obsd-master'Thomas Adam
Conflicts: window-buffer.c
2017-05-31Style and spacing nits.nicm
2017-04-25Merge branch 'obsd-master'Thomas Adam
2017-04-25Do not update TERM into config file parsing has finished.nicm
2017-04-20Merge branch 'obsd-master'Thomas Adam
2017-04-20If a #() command doesn't exit, use its most recent line of output (itnicm
must be a full line). Don't let it redraw the status line more than once a second. Requested by someone about 10 years ago...
2017-03-09Merge branch 'obsd-master'Thomas Adam
2017-03-09Move server_fill_environ into environ.c and move some other common codenicm
into it.
2016-10-12Merge branch 'obsd-master'Thomas Adam
Conflicts: format.c osdep-openbsd.c
2016-10-10Loads more static, except for cmd-*.c and window-*.c.nicm
2016-01-19Merge branch 'obsd-master'Thomas Adam
2016-01-19I no longer use my SourceForge address so replace it.nicm
2015-11-18Merge branch 'obsd-master'Thomas Adam
2015-11-18Use __unused rather than rolling our own.nicm
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-15Some header fixes.Nicholas Marriott
2015-06-17Merge branch 'obsd-master'Thomas Adam
2015-06-17Use an explicit job state instead of avoid closing our side of thenicm
socketpair and setting it to -1 to mark when the other side is closed. This avoids closing it while the libevent bufferevent still has it (it could try to add it to the polled set which some mechanisms don't like). Fixes part a problem reported by Bruno Sutic.
2015-04-25Merge branch 'obsd-master'Thomas Adam
2015-04-24Set working directory for run-shell and if-shell.nicm
2014-11-08No need for $Id$ now.Nicholas Marriott
2014-10-21Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile cmd-list-commands.c cmd-suspend-client.c job.c tmux.h xmalloc.c
2014-10-20Tidy up some includes.nicm
2014-04-23Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile tmux.1 window.c
2014-04-14Don't leak socketpair file descriptors if fork fails. Spotted by Balazsnicm
Kezes.
2013-10-10Use format_get_command() and some spacing tweaks.nicm
2013-10-10Add openat() to compat.Nicholas Marriott
2013-04-23Merge branch 'obsd-master'Thomas Adam
Sync from OpenBSD.