From 6b081fa421f4028bad0be22178f8d8e5e9015041 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 8 Dec 2023 13:26:52 +0100 Subject: [PATCH] Revert "more: exit if POLLHUP or POLLERR on stdin is received" the regression test more/regexp failed. This reverts commit 9be4122b1d8c1c2b8eb270998838c73bae7ff2ff. --- text-utils/more.c | 5 ----- 1 file changed, 5 deletions(-) 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; -- 2.47.3