Trying to fix SIGPIPE issue on server (linux).

This commit is contained in:
lotodore
2007-10-30 13:03:17 +00:00
parent aac9bcb54b
commit b89ce1d67f
4 changed files with 13 additions and 2 deletions
+4
View File
@@ -26,10 +26,14 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <csignal>
using namespace std;
bool
socket_startup()
{
signal(SIGPIPE, SIG_IGN);
return true;
}