chansrv: minor change in child_signal_handler

This commit is contained in:
Jay Sorg 2013-12-30 13:38:40 -08:00
parent 3e521a5298
commit 2aa92fd6a8

View File

@ -1207,25 +1207,23 @@ nil_signal_handler(int sig)
void DEFAULT_CC
child_signal_handler(int sig)
{
int i1;
int pid;
LOG(0, ("child_signal_handler:"));
do
{
i1 = g_waitchild();
if (i1 == g_exec_pid)
pid = g_waitchild();
LOG(0, ("child_signal_handler: child pid %d", pid));
if ((pid == g_exec_pid) && (pid > 0))
{
LOG(0, ("child_signal_handler: found pid %d", i1));
LOG(0, ("child_signal_handler: found pid %d", pid));
//shutdownx();
}
LOG(10, (" %d", i1));
}
while (i1 >= 0);
while (pid >= 0);
}
/*****************************************************************************/
void DEFAULT_CC
segfault_signal_handler(int sig)
{