Verified Commit c040589f authored by Tobias WEBER's avatar Tobias WEBER
Browse files

made sure that all child processes are ended

parent 0defaf32
......@@ -227,6 +227,7 @@ static void msg_send(ipr::message_queue& msgqueue, const ProcMsg& msg)
static ProcMsg msg_recv(ipr::message_queue& msgqueue)
{
ProcMsg msg;
try
{
std::size_t iSize = 0;
......@@ -240,6 +241,7 @@ static ProcMsg msg_recv(ipr::message_queue& msgqueue)
{
tl::log_err(ex.what());
}
return msg;
}
......@@ -444,7 +446,7 @@ SqwProc<t_sqw>::SqwProc(const char* pcCfg, SqwProcStartMode mode,
if(!m_bOk)
{
tl::log_err("Child process ", m_pidChild[iChild], " reports failure.");
m_iNumChildProcesses = iChild;
m_iNumChildProcesses = iChild+1;
break;
}
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment