projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebc0548
)
allow Ctrl-C to be pressed when using gdb stub and SDL
author
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 30 Sep 2003 21:09:16 +0000
(21:09 +0000)
committer
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 30 Sep 2003 21:09:16 +0000
(21:09 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@394
c046a42c
-6fe2-441c-8c8c-
71466251a162
sdl.c
patch
|
blob
|
history
diff --git
a/sdl.c
b/sdl.c
index e9c28f2a1a12fec591fcd8c4ded40f4f9d979539..d8ec2c6a336e87a9bc36312965f9fb4cf6b189f1 100644
(file)
--- a/
sdl.c
+++ b/
sdl.c
@@
-42,8
+42,8
@@
#include <SDL.h>
-#include "cpu
-i386
.h"
-#include "exec.h"
+#include "cpu.h"
+#include "exec
-all
.h"
#include "vl.h"
@@
-264,6
+264,10
@@
void sdl_display_init(DisplayState *ds)
fprintf(stderr, "Could not initialize SDL - exiting\n");
exit(1);
}
+ /* NOTE: we still want Ctrl-C to work, so we undo the SDL redirections */
+ signal(SIGINT, SIG_DFL);
+ signal(SIGQUIT, SIG_DFL);
+
ds->dpy_update = sdl_update;
ds->dpy_resize = sdl_resize;
ds->dpy_refresh = sdl_refresh;