diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-07-15 09:28:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-07-15 09:28:33 +0000 |
commit | 37af3bbb1853eadccd7b19dd1795e72dd6facae8 (patch) | |
tree | 0ce2aed2f11fb930d48030186e7ac6ba2a7abe8f /usr.bin/tmux/environ.c | |
parent | ba4d682bf4a78dfca2e63acba3e47ea9754e1ee7 (diff) |
Log environment to new panes.
Diffstat (limited to 'usr.bin/tmux/environ.c')
-rw-r--r-- | usr.bin/tmux/environ.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/tmux/environ.c b/usr.bin/tmux/environ.c index c4ccd10104a..a1e66c95d77 100644 --- a/usr.bin/tmux/environ.c +++ b/usr.bin/tmux/environ.c @@ -1,4 +1,4 @@ -/* $OpenBSD: environ.c,v 1.13 2016/05/26 12:15:42 nicm Exp $ */ +/* $OpenBSD: environ.c,v 1.14 2016/07/15 09:28:32 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -203,3 +203,13 @@ environ_push(struct environ *env) setenv(envent->name, envent->value, 1); } } + +/* Log the environment. */ +void +environ_log(struct environ *env) +{ + struct environ_entry *envent; + + RB_FOREACH(envent, environ, env) + log_debug("%s=%s", envent->name, envent->value); +} |