ignore SIGPIPE the correct way

pull/1/head
dscho 21 years ago
parent a6149f349e
commit 167c619722

@ -752,8 +752,6 @@ void rfbScreenCleanup(rfbScreenInfoPtr rfbScreen)
#endif #endif
} }
static void ignoreSignal(int dummy) {}
void rfbInitServer(rfbScreenInfoPtr rfbScreen) void rfbInitServer(rfbScreenInfoPtr rfbScreen)
{ {
#ifdef WIN32 #ifdef WIN32
@ -763,7 +761,7 @@ void rfbInitServer(rfbScreenInfoPtr rfbScreen)
rfbInitSockets(rfbScreen); rfbInitSockets(rfbScreen);
httpInitSockets(rfbScreen); httpInitSockets(rfbScreen);
if(rfbScreen->ignoreSIGPIPE) if(rfbScreen->ignoreSIGPIPE)
signal(SIGPIPE,ignoreSignal); signal(SIGPIPE,SIG_IGN);
} }
#ifndef LIBVNCSERVER_HAVE_GETTIMEOFDAY #ifndef LIBVNCSERVER_HAVE_GETTIMEOFDAY

Loading…
Cancel
Save