using std::strerror;
#endif
+namespace lyx {
+namespace support {
+
// Ensure, that only one controller exists inside process
ForkedcallsController & ForkedcallsController::get()
{
} else if (waitrpid == 0) {
// Still running. Move on to the next child.
- continue;
} else if (WIFEXITED(stat_loc)) {
// Ok, the return value goes into retval.
}
if (remove_it) {
- // Emit signal and remove the item from the list
+ forkedCalls.erase(it);
+
actCall->emitSignal();
delete actCall;
- // erase returns the next element in the list
- it = forkedCalls.erase(it);
+
+ /* start all over: emiting the signal can result
+ * in changing the list (Ab)
+ */
+ it = forkedCalls.begin();
} else {
++it;
}
timeout_->stop();
}
}
+
+} // namespace support
+} // namespace lyx