Commit e9b19599 authored by imen.bhiri's avatar imen.bhiri Committed by Sukru Senli

Ticket refs #12018 :icwmp stop connecting to ACS

parent 905a6676
......@@ -326,7 +326,13 @@ int dmcmd(char *cmd, int n, ...)
close(dmcmd_pfds[1]);
int status;
while (waitpid(pid, &status, 0) != pid);
while (waitpid(pid, &status, 0) != pid)
{
kill(pid, 0);
if (errno == ESRCH) {
return dmcmd_pfds[0];
}
}
return dmcmd_pfds[0];
}
......
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