register signal handler after initializing SDL.
authorGleb Natapov <gleb@redhat.com>
Thu, 31 Mar 2011 09:27:23 +0000 (11:27 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 3 Apr 2011 22:26:07 +0000 (00:26 +0200)
commit0ce235a7ee5a1852c0a18d4764ac0a6700805c83
treeb0e3a327c6547e6c2b581fc49def006227cce59b
parentf1d3fb04d55f46d39073e7089a5be43a16e80aa9
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>
vl.c