aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/daemon.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-06-02 01:52:11 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-06-02 01:57:31 +0300
commit1f7962830e0a72a6d7a85ae61ab95341ad0b8fdd (patch)
tree46659d48592a639aeca730a5b29d31b09087e9d3 /src/microhttpd/daemon.c
parenta58870f63a661211d45b393779ef3ed1dab2e3b8 (diff)
downloadlibmicrohttpd-1f7962830e0a72a6d7a85ae61ab95341ad0b8fdd.tar.gz
libmicrohttpd-1f7962830e0a72a6d7a85ae61ab95341ad0b8fdd.zip
Added support for SOCK_NOSIGPIPE from Solaris 11.4 and NetBSD 7+
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r--src/microhttpd/daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index a5051c01..0764f286 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -3136,7 +3136,7 @@ MHD_accept_connection (struct MHD_Daemon *daemon)
3136 s = accept4 (fd, 3136 s = accept4 (fd,
3137 addr, 3137 addr,
3138 &addrlen, 3138 &addrlen,
3139 MAYBE_SOCK_CLOEXEC | MAYBE_SOCK_NONBLOCK); 3139 MAYBE_SOCK_CLOEXEC | MAYBE_SOCK_NONBLOCK | MAYBE_SOCK_NOSIGPIPE);
3140 sk_nonbl = (MAYBE_SOCK_NONBLOCK != 0); 3140 sk_nonbl = (MAYBE_SOCK_NONBLOCK != 0);
3141#else /* ! USE_ACCEPT4 */ 3141#else /* ! USE_ACCEPT4 */
3142 s = accept (fd, 3142 s = accept (fd,