diff --git a/src/unix/stream.c b/src/unix/stream.c index 5ec6bf4d..88bfa7b5 100644 --- a/src/unix/stream.c +++ b/src/unix/stream.c @@ -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); diff --git a/src/win/process-stdio.c b/src/win/process-stdio.c index 032e3093..84cab473 100644 --- a/src/win/process-stdio.c +++ b/src/win/process-stdio.c @@ -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; diff --git a/src/win/process.c b/src/win/process.c index b493c04d..71345b61 100644 --- a/src/win/process.c +++ b/src/win/process.c @@ -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()); } diff --git a/src/win/tcp.c b/src/win/tcp.c index 39c1ff05..22a5db80 100644 --- a/src/win/tcp.c +++ b/src/win/tcp.c @@ -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]; diff --git a/src/win/tty.c b/src/win/tty.c index ecf7bc9b..3da68d3f 100644 --- a/src/win/tty.c +++ b/src/win/tty.c @@ -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); diff --git a/test/benchmark-async-pummel.c b/test/benchmark-async-pummel.c index cca3de10..119ae5ee 100644 --- a/test/benchmark-async-pummel.c +++ b/test/benchmark-async-pummel.c @@ -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); diff --git a/test/runner-win.c b/test/runner-win.c index d86fda3c..3f2e2475 100644 --- a/test/runner-win.c +++ b/test/runner-win.c @@ -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; diff --git a/test/test-callback-stack.c b/test/test-callback-stack.c index 8855c084..66b27387 100644 --- a/test/test-callback-stack.c +++ b/test/test-callback-stack.c @@ -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++; diff --git a/test/test-signal-multiple-loops.c b/test/test-signal-multiple-loops.c index 1272d457..79242fc9 100644 --- a/test/test-signal-multiple-loops.c +++ b/test/test-signal-multiple-loops.c @@ -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);