From: Soumendra Ganguly <67527439+8vasu@users.noreply.github.com> Date: Thu, 13 Aug 2020 11:01:57 +0000 (-0500) Subject: More minor typos X-Git-Tag: v2.37-rc1~513^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c556dc5943f7d2d5f367133e7572412d7741c694;p=thirdparty%2Futil-linux.git More minor typos --- diff --git a/lib/pty-session.c b/lib/pty-session.c index 1173d98c84..bc18cd5f03 100644 --- a/lib/pty-session.c +++ b/lib/pty-session.c @@ -113,7 +113,7 @@ pid_t ul_pty_get_child(struct ul_pty *pty) return pty->child; } -/* it's active when signals are redurected to sigfd */ +/* it's active when signals are redirected to sigfd */ int ul_pty_is_running(struct ul_pty *pty) { assert(pty); @@ -479,7 +479,7 @@ static int handle_signal(struct ul_pty *pty, int fd) case SIGQUIT: DBG(SIG, ul_debugobj(pty, " get signal SIG{TERM,INT,QUIT}")); pty->delivered_signal = info.ssi_signo; - /* Child termination is going to generate SIGCHILD (see above) */ + /* Child termination is going to generate SIGCHLD (see above) */ if (pty->child > 0) kill(pty->child, SIGTERM); @@ -515,9 +515,7 @@ int ul_pty_proxy_master(struct ul_pty *pty) [POLLFD_STDIN] = { .fd = STDIN_FILENO, .events = POLLIN | POLLERR | POLLHUP } }; - /* We use signalfd and standard signals by handlers are blocked - * at all - */ + /* We use signalfd, and standard signals by handlers are completely blocked */ assert(pty->sigfd >= 0); pfd[POLLFD_SIGNAL].fd = pty->sigfd; @@ -602,7 +600,7 @@ int ul_pty_proxy_master(struct ul_pty *pty) /* data */ if (pfd[i].revents & POLLIN) rc = handle_io(pty, pfd[i].fd, &eof); - /* EOF maybe detected by two ways: + /* EOF maybe detected in two ways; they are: * A) poll() return POLLHUP event after close() * B) read() returns 0 (no data) *