Fixed edge case of interrupt handler for catching ended child processes.

This commit is contained in:
Thulinma 2013-07-23 14:28:35 +02:00
parent 867fa715eb
commit 6a72fddf7b

View file

@ -95,6 +95,10 @@ void Util::Procs::childsig_handler(int signum){
if (ret == 0){ //ignore, would block otherwise
return;
}else if (ret < 0){
if (errno == EINTR){
childsig_handler(signum);
return;
}
#if DEBUG >= 3
std::cerr << "SIGCHLD received, but no child died";
#endif