fix evutil_make_internal_pipe_'s comment that fd[0] for read and f[1] for write

(cherry picked from commit 2e52bace9f9998826bd3819af328efc8d18decf9)
This commit is contained in:
Xiang Zhang 2017-03-16 23:32:43 +08:00 committed by Azat Khuzhin
parent 5398cbcded
commit 7f0a7564c3
No known key found for this signature in database
GPG Key ID: B86086848EF8686D
2 changed files with 2 additions and 2 deletions

View File

@ -219,7 +219,7 @@ struct event_base {
/** Function pointers used to describe the backend that this event_base
* uses for signals */
const struct eventop *evsigsel;
/** Data to implement the common signal handelr code. */
/** Data to implement the common signal handler code. */
struct evsig_info sig;
/** Number of virtual events */

View File

@ -2593,7 +2593,7 @@ evutil_accept4_(evutil_socket_t sockfd, struct sockaddr *addr,
}
/* Internal function: Set fd[0] and fd[1] to a pair of fds such that writes on
* fd[0] get read from fd[1]. Make both fds nonblocking and close-on-exec.
* fd[1] get read from fd[0]. Make both fds nonblocking and close-on-exec.
* Return 0 on success, -1 on failure.
*/
int