Skip to content

Commit

Permalink
Ignore SIGPIPE
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose committed Jul 7, 2017
1 parent c30f6e8 commit e4ef082
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e4ef082

Please sign in to comment.