diff options
author | John Estabrook <jestabro@vyos.io> | 2020-09-14 15:41:22 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2020-09-15 09:57:23 -0500 |
commit | bf1d6fff80eebb579f2c33b1352a7162b8474730 (patch) | |
tree | 890da6cbe8aef937c144fd33bcd37446d62f11b2 /src/shim/vyshim.c | |
parent | 24c4f9b6fa299e5bc67d82f5a8e0e5b4f9c4d04b (diff) | |
download | vyos-1x-bf1d6fff80eebb579f2c33b1352a7162b8474730.tar.gz vyos-1x-bf1d6fff80eebb579f2c33b1352a7162b8474730.zip |
configd: T2885: print commit errors to config session terminal
Diffstat (limited to 'src/shim/vyshim.c')
-rw-r--r-- | src/shim/vyshim.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/shim/vyshim.c b/src/shim/vyshim.c index 8b6feab99..196e3221e 100644 --- a/src/shim/vyshim.c +++ b/src/shim/vyshim.c @@ -162,6 +162,10 @@ int initialization(void* Requester) double prev_time_value, time_value; double time_diff; + char *pid_val = getenv("VYATTA_CONFIG_TMP"); + strsep(&pid_val, "_"); + debug_print("config session pid: %s\n", pid_val); + debug_print("Sending init announcement\n"); char *init_announce = mkjson(MKJSON_OBJ, 1, MKJSON_STRING, "type", "init"); @@ -219,6 +223,12 @@ int initialization(void* Requester) free(session_str); + debug_print("Sending config session pid\n"); + zmq_send(Requester, pid_val, strlen(pid_val), 0); + zmq_recv(Requester, buffer, 16, 0); + debug_print("Received pid receipt\n"); + + return 0; } |