mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-07 23:02:23 +00:00
Add global variable inSignalContext
This will be used for checking for proper logging when in signal context. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
8dc70acbf3
commit
d3725549f0
3 changed files with 9 additions and 0 deletions
|
|
@ -99,6 +99,8 @@ xf86SIGIO(int sig)
|
|||
int save_errno = errno; /* do not clobber the global errno */
|
||||
int r;
|
||||
|
||||
inSignalContext = TRUE;
|
||||
|
||||
ready = xf86SigIOMask;
|
||||
to.tv_sec = 0;
|
||||
to.tv_usec = 0;
|
||||
|
|
@ -114,6 +116,8 @@ xf86SIGIO(int sig)
|
|||
}
|
||||
/* restore global errno */
|
||||
errno = save_errno;
|
||||
|
||||
inSignalContext = FALSE;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Reference in a new issue