1 diff -ur aMule-2.3.1/src/amuled.cpp aMule-2.3.1.wx3/src/amuled.cpp
2 --- aMule-2.3.1/src/amuled.cpp 2011-07-13 17:00:12.000000000 +0200
3 +++ aMule-2.3.1.wx3/src/amuled.cpp 2014-01-19 13:55:50.904800356 +0100
9 static EndProcessDataMap endProcDataMap;
13 int CDaemonAppTraits::WaitForChild(wxExecuteData &execData)
16 result = AmuleWaitPid(execData.pid, &status, WNOHANG, &msg);
19 // Add a WxEndProcessData entry to the map, so that we can
20 // support process termination
21 wxEndProcessData *endProcData = new wxEndProcessData();
23 endProcData->process = execData.process;
25 endProcDataMap[execData.pid] = endProcData;
28 status = execData.pid;
31 msg << wxT("OnSignalChildHandler() has been called for child process with pid `") <<
35 // Make sure we leave no zombies by calling waitpid()
37 pid_t result = AmuleWaitPid(siginfo->si_pid, &status, WNOHANG, &msg);
39 msg << wxT(" Error: the child process pid is not on the pid map.");
44 // Log our passage here
45 AddDebugLogLineN(logGeneral, msg);