mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Ignore SIGPIPE
This commit is contained in:
parent
c30f6e81a6
commit
e4ef0828b0
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue