Commit 167c6197 authored by dscho's avatar dscho

ignore SIGPIPE the correct way

parent a6149f34
......@@ -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
......
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