1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

exec: Pass name of node and config path via environment variable to sub-process

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel 2024-02-27 17:25:05 +01:00
parent 49523a5076
commit 1df089e185

View file

@ -122,6 +122,10 @@ int ExecNode::prepare() {
}
int ExecNode::start() {
// Pass configuration file and node-name via environemnt
environment["VILLAS_NODE_CONFIG"] = configPath;
environment["VILLAS_NODE_NAME"] = name_short;
// Start subprocess
proc = std::make_unique<Popen>(command, arguments, environment, working_dir,
shell);