diff options
author | Gleb Natapov <gleb@redhat.com> | 2011-03-31 11:27:23 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-04-04 00:26:07 +0200 |
commit | 0ce235a7ee5a1852c0a18d4764ac0a6700805c83 (patch) | |
tree | b0e3a327c6547e6c2b581fc49def006227cce59b /vl.c | |
parent | f1d3fb04d55f46d39073e7089a5be43a16e80aa9 (diff) | |
download | qemu-0ce235a7ee5a1852c0a18d4764ac0a6700805c83.tar.gz |
register signal handler after initializing SDL.
SDL library initialization mangles signal handlers, so QEMU should
register them after initializing SDL. This was the case before and code
even have a comment about that. Fix it to be so again.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3059,9 +3059,6 @@ int main(int argc, char **argv, char **envp) cpu_synchronize_all_post_init(); - /* must be after terminal init, SDL library changes signal handlers */ - os_setup_signal_handling(); - set_numa_modes(); current_machine = machine; @@ -3117,6 +3114,9 @@ int main(int argc, char **argv, char **envp) break; } + /* must be after terminal init, SDL library changes signal handlers */ + os_setup_signal_handling(); + #ifdef CONFIG_VNC /* init remote displays */ if (vnc_display) { |