Trying to fix SIGPIPE issue on server (linux).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user