From 30af52eb324f6bf5551869033605e3141d745a40 Mon Sep 17 00:00:00 2001 From: Vadim Troshchinskiy Date: Tue, 18 Oct 2016 09:19:28 +0200 Subject: Slave channel implementation When enabled and a connection is made to the port, launches the process specified in NX_SLAVE_CMD on the other side, and connects stdin and stdout to the socket. This is used for VM/client and client/VM communication. --- nxcomp/Loop.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nxcomp/Loop.cpp') diff --git a/nxcomp/Loop.cpp b/nxcomp/Loop.cpp index 46031e70d..09ba6f952 100644 --- a/nxcomp/Loop.cpp +++ b/nxcomp/Loop.cpp @@ -359,7 +359,7 @@ static void RestoreSignal(int signal); static int HandleChildren(); -static int HandleChild(int child); +int HandleChild(int child); static int CheckChild(int pid, int status); static int WaitChild(int child, const char *label, int force); @@ -6250,6 +6250,8 @@ int HandleChildren() return 1; } + proxy->checkSlaves(); + // // This can actually happen either because we // reset the pid of the child process as soon -- cgit v1.2.3