diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-04-06 21:59:19 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-04-06 21:59:19 +0000 |
commit | 0fc65537a3e103ef0658234cdfa1339160b2a18d (patch) | |
tree | edc2e38ae6c805d415cef5133d2a0dddca81fbfd /job.c | |
parent | 091db41bc9d178524c22465f744f59f8de9ce7f4 (diff) | |
download | rtmux-0fc65537a3e103ef0658234cdfa1339160b2a18d.tar.gz rtmux-0fc65537a3e103ef0658234cdfa1339160b2a18d.tar.bz2 rtmux-0fc65537a3e103ef0658234cdfa1339160b2a18d.zip |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 <nicm@users.sourceforge.net> @@ -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"); |