Commit 41c3069f authored by Mark Vytlacil's avatar Mark Vytlacil Committed by Daniel Stone
Browse files

XFree86: Input: Save/restore errno around SIGIO (bug #10683)

Make sure errno is saved and restored from the SIGIO handler, so errors
from system calls in input handlers don't break the interrupted code.
parent ff9929ed
......@@ -510,12 +510,14 @@ static void
xf86SigioReadInput(int fd,
void *closure)
{
int errno_save = errno;
int sigstate = xf86BlockSIGIO();
InputInfoPtr pInfo = (InputInfoPtr) closure;
pInfo->read_input(pInfo);
xf86UnblockSIGIO(sigstate);
errno = errno_save;
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment