mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
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:
5
job.c
5
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 <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");
|
||||
|
Reference in New Issue
Block a user