diff options
author | dscho <dscho> | 2004-04-19 16:24:18 +0000 |
---|---|---|
committer | dscho <dscho> | 2004-04-19 16:24:18 +0000 |
commit | 167c619722e21e4f1c751dc187abcabb7cf2dd56 (patch) | |
tree | 0d5ae0c779640303f55b8a718bcb6f8a75be6147 | |
parent | a6149f349e6b3f4d8666af051390757b1b910a37 (diff) | |
download | libtdevnc-167c619722e21e4f1c751dc187abcabb7cf2dd56.tar.gz libtdevnc-167c619722e21e4f1c751dc187abcabb7cf2dd56.zip |
ignore SIGPIPE the correct way
-rw-r--r-- | main.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |