mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Squash a couple of warnings, one at compile time and one at run time.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8550 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
77d02a91dd
commit
744c845a05
@ -1,3 +1,10 @@
|
|||||||
|
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>
|
2004-03-26 Angus Leeming <leeming@lyx.org>
|
||||||
|
|
||||||
* forkedcall.[Ch] (run): new function, replacing runBlocking,
|
* forkedcall.[Ch] (run): new function, replacing runBlocking,
|
||||||
|
@ -165,7 +165,8 @@ void child_handler(int)
|
|||||||
ForkedcallsController & fcc = ForkedcallsController::get();
|
ForkedcallsController & fcc = ForkedcallsController::get();
|
||||||
|
|
||||||
// Be safe
|
// 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;
|
return;
|
||||||
|
|
||||||
ForkedcallsController::Data & store =
|
ForkedcallsController::Data & store =
|
||||||
@ -260,6 +261,9 @@ void ForkedcallsController::handleCompletedProcesses()
|
|||||||
Data & store = reaped_children[i];
|
Data & store = reaped_children[i];
|
||||||
|
|
||||||
if (store.pid == -1) {
|
if (store.pid == -1) {
|
||||||
|
// Might happen perfectly innocently, eg as a result
|
||||||
|
// of the system (3) call.
|
||||||
|
if (errno)
|
||||||
lyxerr << "LyX: Error waiting for child: "
|
lyxerr << "LyX: Error waiting for child: "
|
||||||
<< strerror(errno) << endl;
|
<< strerror(errno) << endl;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user