mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 13:16:12 +00:00
Made DOSVM_GetTimer survive EAGAIN errors...
This commit is contained in:
parent
a4dd1bee31
commit
240bdacb8d
1 changed files with 5 additions and 3 deletions
|
@ -523,9 +523,11 @@ 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) {
|
||||||
ERR(module,"dosmod sync lost, errno=%d\n",errno);
|
if (read(pModule->lpDosTask->read_pipe,&tim,sizeof(tim))==sizeof(tim)) break;
|
||||||
return 0;
|
if ((errno==EINTR)||(errno==EAGAIN)) continue;
|
||||||
|
ERR(module,"dosmod sync lost, errno=%d\n",errno);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
return ((unsigned long long)tim.tv_usec*1193180)/1000000;
|
return ((unsigned long long)tim.tv_usec*1193180)/1000000;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue