Add escape hatch if rarch (or the core) is in an infinite loop.

This commit is contained in:
Alcaro 2016-02-23 16:11:39 +01:00
parent 04ac09f579
commit 7a6463a300
4 changed files with 4 additions and 0 deletions

View File

@ -172,6 +172,7 @@ void egl_get_video_size(void *data, unsigned *width, unsigned *height)
static void egl_sighandler(int sig) static void egl_sighandler(int sig)
{ {
(void)sig; (void)sig;
if (g_egl_quit) exit(1);
g_egl_quit = 1; g_egl_quit = 1;
} }

View File

@ -504,6 +504,7 @@ bool x11_has_focus(void *data)
static void x11_sighandler(int sig) static void x11_sighandler(int sig)
{ {
(void)sig; (void)sig;
if (g_x11_quit) exit(1);
g_x11_quit = 1; g_x11_quit = 1;
} }

View File

@ -91,6 +91,7 @@ struct drm_fb
static void drm_sighandler(int sig) static void drm_sighandler(int sig)
{ {
(void)sig; (void)sig;
if (drm_quit) exit(1);
drm_quit = 1; drm_quit = 1;
} }

View File

@ -83,6 +83,7 @@ static enum gfx_ctx_api wl_api;
static void wl_sighandler(int sig) static void wl_sighandler(int sig)
{ {
(void)sig; (void)sig;
if (wl_quit) exit(1);
wl_quit = 1; wl_quit = 1;
} }