mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-07 23:02:23 +00:00
xfree86: Convert some xf86BlockSIGIO to OsBlockSignals
The DDC1 and int10 code are blocking SIGIO to get some assurance that their usleep() calls take as long as they expect. That's a good start but you really want to be blocking more than just SIGIO, SIGALRM too at minimum. At this point, except for SIGIO handler setup itself, BlockSIGIO really means "block input events". Reviewed-by: Tiago Vignatti <tiago.vignatti@nokia.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
ce13a1dbbf
commit
56d9c736f0
2 changed files with 7 additions and 9 deletions
|
|
@ -75,13 +75,14 @@ setup_int(xf86Int10InfoPtr pInt)
|
|||
if (pInt->Flags & SET_BIOS_SCRATCH)
|
||||
SetResetBIOSVars(pInt, TRUE);
|
||||
#endif
|
||||
return xf86BlockSIGIO();
|
||||
OsBlockSignals();
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
finish_int(xf86Int10InfoPtr pInt, int sig)
|
||||
{
|
||||
xf86UnblockSIGIO(sig);
|
||||
OsReleaseSignals();
|
||||
pInt->ax = (CARD32) X86_EAX;
|
||||
pInt->bx = (CARD32) X86_EBX;
|
||||
pInt->cx = (CARD32) X86_ECX;
|
||||
|
|
|
|||
Loading…
Reference in a new issue