Run job commands explicitly in the global enviroment (which can be

modified with setenv -g) rather than with the environment tmux started
with.
This commit is contained in:
Nicholas Marriott
2010-04-04 19:02:09 +00:00
parent 7425122c1c
commit b02cd35354
5 changed files with 50 additions and 24 deletions

3
job.c
View File

@ -150,7 +150,8 @@ job_run(struct job *job)
return (-1);
case 0: /* child */
server_signal_clear();
/* XXX environ? */
environ_push(&global_environ);
if (dup2(out[1], STDOUT_FILENO) == -1)
fatal("dup2 failed");