+2004-03-27 Angus Leeming <leeming@lyx.org>
+
+ * forkedcontr.C (child_handler): squash warning about a
+ signed/unsigned comparison.
+ (handleCompletedProcesses): only output a warning about an error
+ waiting for the child if it is indeed an error ;-)
+
2004-03-26 Angus Leeming <leeming@lyx.org>
* forkedcall.[Ch] (run): new function, replacing runBlocking,
ForkedcallsController & fcc = ForkedcallsController::get();
// Be safe
- if (fcc.current_child+1 >= fcc.reaped_children.size())
+ typedef vector<ForkedcallsController::Data>::size_type size_type;
+ if (size_type(fcc.current_child + 1) >= fcc.reaped_children.size())
return;
ForkedcallsController::Data & store =
Data & store = reaped_children[i];
if (store.pid == -1) {
- lyxerr << "LyX: Error waiting for child: "
- << strerror(errno) << endl;
+ // Might happen perfectly innocently, eg as a result
+ // of the system (3) call.
+ if (errno)
+ lyxerr << "LyX: Error waiting for child: "
+ << strerror(errno) << endl;
continue;
}