Log environment to new panes.

This commit is contained in:
nicm
2016-07-15 09:28:32 +00:00
parent 68b1fd0cc6
commit 1718420c48
3 changed files with 12 additions and 0 deletions

View File

@ -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);
}