From 167c619722e21e4f1c751dc187abcabb7cf2dd56 Mon Sep 17 00:00:00 2001 From: dscho Date: Mon, 19 Apr 2004 16:24:18 +0000 Subject: [PATCH] ignore SIGPIPE the correct way --- main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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