aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-10-17 01:25:50 -0700
committerbnewbold <bnewbold@robocracy.org>2016-10-17 01:25:50 -0700
commit31c9d2026a2caab570d3b1f6850f6eb5e065335d (patch)
tree44319b46642c0e03d1bb925acc5f9f405c7d5216
parent8347b59e0699804362e488e331820a51fd53df32 (diff)
downloadeinhyrningsins-31c9d2026a2caab570d3b1f6850f6eb5e065335d.zip
einhyrningsins-31c9d2026a2caab570d3b1f6850f6eb5e065335d.tar.gz
add EINHORN_SOCK_PATH to child envs
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 70373cd..ca6e033 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -681,6 +681,7 @@ fn init(cfg: EinConfig, ctrl_req_rx: Receiver<CtrlRequest>) -> Result<EinState,
for (i, fd) in bind_fds.iter().enumerate() {
cmd.env(format!("EINHORN_FD_{}", i), fd.to_string());
}
+ cmd.env("EINHORN_SOCK_PATH", cfg.ctrl_path.clone());
// create timer thread
let timer = timer::Timer::new();