Commit 7ed1c0ae authored by Christian Beier's avatar Christian Beier Committed by Johannes Schindelin

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

Signed-off-by: 's avatarChristian Beier <dontmind@freeshell.org>
Signed-off-by: 's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
parent 1f6c5609
#include <SDL.h> #include <SDL.h>
#include <signal.h>
#include <rfb/rfbclient.h> #include <rfb/rfbclient.h>
#include "scrap.h" #include "scrap.h"
...@@ -498,6 +499,7 @@ int main(int argc,char** argv) { ...@@ -498,6 +499,7 @@ int main(int argc,char** argv) {
SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY,
SDL_DEFAULT_REPEAT_INTERVAL); SDL_DEFAULT_REPEAT_INTERVAL);
atexit(SDL_Quit); atexit(SDL_Quit);
signal(SIGINT, exit);
do { do {
/* 16-bit: cl=rfbGetClient(5,3,2); */ /* 16-bit: cl=rfbGetClient(5,3,2); */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment