diff options
-rw-r--r-- | client_examples/SDLvncviewer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client_examples/SDLvncviewer.c b/client_examples/SDLvncviewer.c index c8c63d1..5555cd1 100644 --- a/client_examples/SDLvncviewer.c +++ b/client_examples/SDLvncviewer.c @@ -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); */ |