SDLvncviewer: add SIGINT handler to be able to actually stop program.

Signed-off-by: Christian Beier <dontmind@freeshell.org>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
pull/1/head
Christian Beier 15 years ago committed by Johannes Schindelin
parent 1f6c560985
commit 7ed1c0aeac

@ -1,4 +1,5 @@
#include <SDL.h>
#include <signal.h>
#include <rfb/rfbclient.h>
#include "scrap.h"
@ -498,6 +499,7 @@ int main(int argc,char** argv) {
SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY,
SDL_DEFAULT_REPEAT_INTERVAL);
atexit(SDL_Quit);
signal(SIGINT, exit);
do {
/* 16-bit: cl=rfbGetClient(5,3,2); */

Loading…
Cancel
Save