diff --git a/main.c b/main.c index e6d7969..488f09d 100644 --- a/main.c +++ b/main.c @@ -752,8 +752,6 @@ void rfbScreenCleanup(rfbScreenInfoPtr rfbScreen) #endif } -static void ignoreSignal(int dummy) {} - void rfbInitServer(rfbScreenInfoPtr rfbScreen) { #ifdef WIN32 @@ -763,7 +761,7 @@ void rfbInitServer(rfbScreenInfoPtr rfbScreen) rfbInitSockets(rfbScreen); httpInitSockets(rfbScreen); if(rfbScreen->ignoreSIGPIPE) - signal(SIGPIPE,ignoreSignal); + signal(SIGPIPE,SIG_IGN); } #ifndef LIBVNCSERVER_HAVE_GETTIMEOFDAY