summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authordscho <dscho>2004-04-19 16:24:18 +0000
committerdscho <dscho>2004-04-19 16:24:18 +0000
commit167c619722e21e4f1c751dc187abcabb7cf2dd56 (patch)
tree0d5ae0c779640303f55b8a718bcb6f8a75be6147 /main.c
parenta6149f349e6b3f4d8666af051390757b1b910a37 (diff)
downloadlibtdevnc-167c619722e21e4f1c751dc187abcabb7cf2dd56.tar.gz
libtdevnc-167c619722e21e4f1c751dc187abcabb7cf2dd56.zip
ignore SIGPIPE the correct way
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 1 insertions, 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