Hi, ok ? -- ASOU Masato
Index: lib/libc/sys/poll.2 =================================================================== RCS file: /cvs/src/lib/libc/sys/poll.2,v retrieving revision 1.39 diff -u -p -r1.39 poll.2 --- lib/libc/sys/poll.2 21 Jan 2022 15:23:36 -0000 1.39 +++ lib/libc/sys/poll.2 12 Jul 2023 04:17:00 -0000 @@ -287,9 +287,9 @@ if (nready == -1) err(1, "poll"); if (nready == 0) errx(1, "time out"); -if ((pfd[0].revents & (POLLERR|POLLNVAL))) +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"); }