]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Revert "more: exit if POLLHUP or POLLERR on stdin is received"
authorKarel Zak <kzak@redhat.com>
Fri, 8 Dec 2023 12:26:52 +0000 (13:26 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 8 Dec 2023 12:26:52 +0000 (13:26 +0100)
the regression test more/regexp failed.

This reverts commit 9be4122b1d8c1c2b8eb270998838c73bae7ff2ff.

text-utils/more.c

index 6ab9dfe4032cdb3949d5833032d3264c0f92cfba..d4db3d5eb9f18a7e68a179fc6cb2c4370301361d 100644 (file)
@@ -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;