src,lib: fix comments

PR-URL: https://github.com/libuv/libuv/pull/1840
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
This commit is contained in:
Tobias Nießen 2018-05-14 23:42:09 +02:00 committed by cjihrig
parent b59fc58326
commit 02e358fa45
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5
9 changed files with 9 additions and 9 deletions

View File

@ -1311,7 +1311,7 @@ static void uv__stream_io(uv_loop_t* loop, uv__io_t* w, unsigned int events) {
assert(uv__stream_fd(stream) >= 0);
/* Ignore POLLHUP here. Even it it's set, there may still be data to read. */
/* Ignore POLLHUP here. Even if it's set, there may still be data to read. */
if (events & (POLLIN | POLLERR | POLLHUP))
uv__read(stream);

View File

@ -354,7 +354,7 @@ int uv__stdio_create(uv_loop_t* loop,
/* Make an inheritable duplicate of the handle. */
err = uv__duplicate_fd(loop, fdopt.data.fd, &child_handle);
if (err) {
/* If fdopt.data.fd is not valid and fd fd <= 2, then ignore the */
/* If fdopt.data.fd is not valid and fd <= 2, then ignore the */
/* error. */
if (fdopt.data.fd <= 2 && err == ERROR_INVALID_HANDLE) {
CHILD_STDIO_CRT_FLAGS(buffer, i) = 0;

View File

@ -890,7 +890,7 @@ void uv_process_proc_exit(uv_loop_t* loop, uv_process_t* handle) {
if (GetExitCodeProcess(handle->process_handle, &status)) {
exit_code = status;
} else {
/* Unable to to obtain the exit code. This should never happen. */
/* Unable to obtain the exit code. This should never happen. */
exit_code = uv_translate_sys_error(GetLastError());
}

View File

@ -627,7 +627,7 @@ int uv_tcp_listen(uv_tcp_t* handle, int backlog, uv_connection_cb cb) {
}
/* Initialize other unused requests too, because uv_tcp_endgame */
/* doesn't know how how many requests were initialized, so it will */
/* doesn't know how many requests were initialized, so it will */
/* try to clean up {uv_simultaneous_server_accepts} requests. */
for (i = simultaneous_accepts; i < uv_simultaneous_server_accepts; i++) {
req = &handle->tcp.serv.accept_reqs[i];

View File

@ -205,7 +205,7 @@ int uv_tty_init(uv_loop_t* loop, uv_tty_t* tty, uv_file fd, int readable) {
return uv_translate_sys_error(GetLastError());
}
/* Obtain the the tty_output_lock because the virtual window state is */
/* Obtain the tty_output_lock because the virtual window state is */
/* shared between all uv_tty_t handles. */
uv_sem_wait(&uv_tty_output_lock);

View File

@ -41,7 +41,7 @@ static void async_cb(uv_async_t* handle) {
/* Tell the pummel thread to stop. */
ACCESS_ONCE(const char*, handle->data) = stop;
/* Wait for for the pummel thread to acknowledge that it has stoppped. */
/* Wait for the pummel thread to acknowledge that it has stoppped. */
while (ACCESS_ONCE(const char*, handle->data) != stopped)
uv_sleep(0);

View File

@ -165,7 +165,7 @@ error:
}
/* Timeout is is msecs. Set timeout < 0 to never time out. */
/* Timeout is in msecs. Set timeout < 0 to never time out. */
/* Returns 0 when all processes are terminated, -2 on timeout. */
int process_wait(process_info_t *vec, int n, int timeout) {
int i;

View File

@ -90,7 +90,7 @@ static void read_cb(uv_stream_t* tcp, ssize_t nread, const uv_buf_t* buf) {
/* We call shutdown here because when bytes_received == sizeof MESSAGE */
/* there will be no more data sent nor received, so here it would be */
/* possible for a backend to to call shutdown_cb immediately and *not* */
/* possible for a backend to call shutdown_cb immediately and *not* */
/* from a fresh stack. */
if (bytes_received == sizeof MESSAGE) {
nested++;

View File

@ -249,7 +249,7 @@ TEST_IMPL(signal_multiple_loops) {
uv_sem_wait(&sem);
/* Block all signals to this thread, so we are sure that from here the signal
* handler runs in another thread. This is is more likely to catch thread and
* handler runs in another thread. This is more likely to catch thread and
* signal safety issues if there are any.
*/
sigfillset(&sigset);