diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-08-23 20:13:29 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-08-23 20:13:29 +0000 |
commit | 4cf082ba053867a7f9749f785627a1a80b2743a0 (patch) | |
tree | 27a681ac5a94d09e278478260280d5710c9d0808 /src/microhttpd/mhd_sockets.h | |
parent | 76a4a10d96c8efb424bfac6cc16b1d14ec5a94dc (diff) | |
download | libmicrohttpd-4cf082ba053867a7f9749f785627a1a80b2743a0.tar.gz libmicrohttpd-4cf082ba053867a7f9749f785627a1a80b2743a0.zip |
Moved make_noninheritable to mhd_sockets.c, improved error reporting.
Diffstat (limited to 'src/microhttpd/mhd_sockets.h')
-rw-r--r-- | src/microhttpd/mhd_sockets.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h index c2817d0f..e22ff7e2 100644 --- a/src/microhttpd/mhd_sockets.h +++ b/src/microhttpd/mhd_sockets.h | |||
@@ -597,4 +597,15 @@ MHD_add_to_fd_set_ (MHD_socket fd, | |||
597 | int | 597 | int |
598 | MHD_socket_nonblocking_ (MHD_socket sock); | 598 | MHD_socket_nonblocking_ (MHD_socket sock); |
599 | 599 | ||
600 | |||
601 | /** | ||
602 | * Change socket options to be non-inheritable. | ||
603 | * | ||
604 | * @param sock socket to manipulate | ||
605 | * @return non-zero if succeeded, zero otherwise | ||
606 | * @warning Does not set socket error on W32. | ||
607 | */ | ||
608 | int | ||
609 | MHD_socket_noninheritable_ (MHD_socket sock); | ||
610 | |||
600 | #endif /* ! MHD_SOCKETS_H */ | 611 | #endif /* ! MHD_SOCKETS_H */ |