Skip to content

Commit

Permalink
yarprun 100% cpu on sigterm bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Jan 31, 2014
1 parent ec17dba commit f0bb6ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/libYARP_OS/include/yarp/os/impl/RunProcManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,17 @@ class ZombieHunterThread : public yarp::os::Thread
while (true)
{
PID zombie=wait(NULL);

//PID zombie=waitpid(-1,NULL,WNOHANG);

if (zombie>0)
{
yarp::os::Run::CleanZombie(zombie);
}
else
{
break;
}
}
}
}
Expand Down

0 comments on commit f0bb6ab

Please sign in to comment.