Trying to fix SIGPIPE issue on server (linux).
This commit is contained in:
1 parent
aac9bcb54b
commit
b89ce1d67f
4 files changed
+13
-2
No files matched your search
@@ -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