diff options
author | Marius Bakke <marius@gnu.org> | 2020-12-13 01:10:06 +0100 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2020-12-13 01:10:06 +0100 |
commit | a7737f0ead2293536b9d0ba253de4673378a0ffa (patch) | |
tree | cf80318b0a9903aa56a69c316659a52f94abbe27 /nix/libutil/util.hh | |
parent | ba47c83570b6d1824738ef5ff8580e7581990699 (diff) | |
parent | 1adeb744560af94687eb7c3780c7145c52674070 (diff) | |
download | guix-a7737f0ead2293536b9d0ba253de4673378a0ffa.tar.gz |
Merge branch 'master' into ungrafting
Diffstat (limited to 'nix/libutil/util.hh')
-rw-r--r-- | nix/libutil/util.hh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nix/libutil/util.hh b/nix/libutil/util.hh index 13cff44316..880b0e93b2 100644 --- a/nix/libutil/util.hh +++ b/nix/libutil/util.hh @@ -7,6 +7,7 @@ #include <dirent.h> #include <unistd.h> #include <signal.h> +#include <map> #include <functional> #include <cstdio> @@ -281,8 +282,10 @@ struct Agent /* The process ID of the agent. */ Pid pid; - /* The command and arguments passed to the agent. */ - Agent(const string &command, const Strings &args); + /* The command and arguments passed to the agent along with a list of + environment variable name/value pairs. */ + Agent(const string &command, const Strings &args, + const std::map<string, string> &env = std::map<string, string>()); ~Agent(); }; |