Correct evhttp_del_accept_socket documentation on whether socket is closed

Thanks to Constantine Verutin for pointing this out.
This commit is contained in:
Nick Mathewson 2011-02-15 11:33:40 -05:00
parent 0c9be76804
commit f665924649

View File

@ -154,7 +154,10 @@ struct evconnlistener *evhttp_bound_socket_get_listener(struct evhttp_bound_sock
* This may be useful when a socket has been sent via file descriptor passing
* and is no longer needed by the current process.
*
* This function does not close the socket.
* If you created this bound socket with evhttp_bind_socket_with_handle or
* evhttp_accept_socket_with_handle, this function closes the fd you provided.
* If you created this bound socket with evhttp_bind_listener, this function
* frees the listener you provided.
*
* \a bound_socket is an invalid pointer after this call returns.
*