From 0fc65537a3e103ef0658234cdfa1339160b2a18d Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 6 Apr 2010 21:59:19 +0000 Subject: Run job commands explicitly in the global enviroment (which can be modified with setenv -g) rather than with the environment tmux started with. --- job.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'job.c') diff --git a/job.c b/job.c index 533071fa..59b17fe0 100644 --- a/job.c +++ b/job.c @@ -1,4 +1,4 @@ -/* $Id: job.c,v 1.15 2010-02-26 13:35:04 tcunha Exp $ */ +/* $Id: job.c,v 1.16 2010-04-06 21:59:19 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -149,7 +149,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"); -- cgit