Suppress sigpipe in sender thread.
This commit is contained in:
@@ -26,14 +26,12 @@
|
||||
#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