From: Karel Zak Date: Fri, 8 Dec 2023 12:26:52 +0000 (+0100) Subject: Revert "more: exit if POLLHUP or POLLERR on stdin is received" X-Git-Tag: v2.40-rc1~118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b081fa421f4028bad0be22178f8d8e5e9015041;p=thirdparty%2Futil-linux.git Revert "more: exit if POLLHUP or POLLERR on stdin is received" the regression test more/regexp failed. This reverts commit 9be4122b1d8c1c2b8eb270998838c73bae7ff2ff. --- diff --git a/text-utils/more.c b/text-utils/more.c index 6ab9dfe403..d4db3d5eb9 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -1392,11 +1392,6 @@ static int more_poll(struct more_control *ctl, int timeout) abort(); } } - - /* Check for POLLERR or POLLHUP in revents */ - if (pfd[1].revents & (POLLHUP | POLLERR)) - more_exit(ctl); - if (pfd[1].revents == 0) return 1; return 0;