summaryrefslogtreecommitdiffstats
path: root/job.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-04-04 19:02:09 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-04-04 19:02:09 +0000
commitb02cd353543cb47ddaf079bd42f94696703f2667 (patch)
treea7f93d71da25c2bae91d2f3a97b60ccf9d63a9ee /job.c
parent7425122c1cd2aff909d72b33ef07b6a71d0c6922 (diff)
Run job commands explicitly in the global enviroment (which can be
modified with setenv -g) rather than with the environment tmux started with.
Diffstat (limited to 'job.c')
-rw-r--r--job.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/job.c b/job.c
index 36ea2f4e..ddeae13f 100644
--- a/job.c
+++ b/job.c
@@ -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");