Made DOSVM_GetTimer survive EAGAIN errors...
This commit is contained in:
parent
a4dd1bee31
commit
240bdacb8d
@ -523,7 +523,9 @@ unsigned DOSVM_GetTimer( void )
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* read response */
|
/* read response */
|
||||||
if (read(pModule->lpDosTask->read_pipe,&tim,sizeof(tim))!=sizeof(tim)) {
|
while (1) {
|
||||||
|
if (read(pModule->lpDosTask->read_pipe,&tim,sizeof(tim))==sizeof(tim)) break;
|
||||||
|
if ((errno==EINTR)||(errno==EAGAIN)) continue;
|
||||||
ERR(module,"dosmod sync lost, errno=%d\n",errno);
|
ERR(module,"dosmod sync lost, errno=%d\n",errno);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user