//close(1);
//close(2);
//setsid();
- Executer(msgKey, *msgID, executerPid, procName);
+ Executer(*msgID, executerPid, procName);
return 1;
default: // Parent
if (executersPid.empty())
- Executer(msgKey, *msgID, executerPid, NULL);
+ Executer(*msgID, executerPid, NULL);
executersPid.insert(executerPid);
}
return 0;
while (nonstop.GetStatus())
{
- usleep(100000);
+ struct timespec ts = {0, 100000000};
+ nanosleep(&ts, NULL);
}
listener->Stop();