forked from util-linux/util-linux
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more: make sure we have data on stderr
more(1) uses more_poll() to monitor data on stdin, stderr, and signals. It is used before read_command(), but this function only reads from stderr. Therefore, if any other non-stderr event occurs, this function will wait on read(). In this case, more(1) will not react to signals anymore. We need to ensure that more(1) only waits in more_poll(). Try for x in {1..1000}; do echo "line $x"; done | more to reproduce. Reported-by: Radka Skvarilova <rskvaril@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
- Loading branch information
Showing
1 changed file
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters