Hi!, I noticed the poll(2) man page has a typo in the example. The below patch fixes this:
diff --git a/lib/libc/sys/poll.2 b/lib/libc/sys/poll.2 index 1c622a450ab..21f46c549fd 100644 --- a/lib/libc/sys/poll.2 +++ b/lib/libc/sys/poll.2 @@ -295,7 +295,7 @@ if (nready == 0) errx(1, "time out"); if ((pfd[0].revents & (POLLERR|POLLNVAL))) errx(1, "bad fd %d", pfd[0].fd); -if ((pfd[0].revents & (POLLIN|POLLHUP))) +if ((pfd[0].revents & (POLLIN|POLLHUP))) { if (read(STDIN_FILENO, buf, sizeof(buf)) == -1) err(1, "read"); } -- Kind regards, Hiltjo