Skip to content

Commit

Permalink
src,lib: fix comments
Browse files Browse the repository at this point in the history
PR-URL: #1840
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Santiago Gimeno <[email protected]>
  • Loading branch information
tniessen authored and cjihrig committed May 22, 2018
1 parent b59fc58 commit 02e358f
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/unix/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/win/process-stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/win/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down
2 changes: 1 addition & 1 deletion src/win/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion src/win/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion test/benchmark-async-pummel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion test/runner-win.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ int process_start(char *name, char *part, process_info_t *p, int is_helper) {
}


/* 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;
Expand Down
2 changes: 1 addition & 1 deletion test/test-callback-stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down
2 changes: 1 addition & 1 deletion test/test-signal-multiple-loops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 02e358f

Please sign in to comment.