mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
daemon: 'Agent' constructor takes a list of environment variables.
* nix/libutil/util.hh (struct Agent)[Agent]: Add 'env' parameter. * nix/libutil/util.cc (Agent::Agent): Honor it.
This commit is contained in:
parent
4a98735297
commit
2e308238ad
2 changed files with 10 additions and 3 deletions
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue