summaryrefslogtreecommitdiffstats
path: root/environ.c
diff options
context:
space:
mode:
authornicm <nicm>2016-07-15 09:28:32 +0000
committernicm <nicm>2016-07-15 09:28:32 +0000
commit1718420c48737a3038966611c83f37f3c272901e (patch)
tree2a42f6a7460e9d304a00f594f475d02f8972a4bd /environ.c
parent68b1fd0cc60fe8719c04c9cae4a6f3e971b78409 (diff)
Log environment to new panes.
Diffstat (limited to 'environ.c')
-rw-r--r--environ.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/environ.c b/environ.c
index 31e57e0e..7709f29d 100644
--- a/environ.c
+++ b/environ.c
@@ -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);
+}