1
0
mirror of synced 2025-04-20 11:47:43 +03:00

Ignore SIGPIPE

This commit is contained in:
yhirose 2017-07-06 22:04:59 -04:00
parent c30f6e81a6
commit e4ef0828b0

View File

@ -815,6 +815,9 @@ inline int SocketStream::write(const char* ptr)
inline Server::Server()
: svr_sock_(-1)
{
#ifndef _MSC_VER
signal(SIGPIPE, SIG_IGN);
#endif
}
inline Server::~Server()