diff options
Diffstat (limited to 'tools/lib/subcmd/pager.c')
-rw-r--r-- | tools/lib/subcmd/pager.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/lib/subcmd/pager.c b/tools/lib/subcmd/pager.c index 5ba754d17952..9997a8805a82 100644 --- a/tools/lib/subcmd/pager.c +++ b/tools/lib/subcmd/pager.c | |||
@@ -30,10 +30,13 @@ static void pager_preexec(void) | |||
30 | * have real input | 30 | * have real input |
31 | */ | 31 | */ |
32 | fd_set in; | 32 | fd_set in; |
33 | fd_set exception; | ||
33 | 34 | ||
34 | FD_ZERO(&in); | 35 | FD_ZERO(&in); |
36 | FD_ZERO(&exception); | ||
35 | FD_SET(0, &in); | 37 | FD_SET(0, &in); |
36 | select(1, &in, NULL, &in, NULL); | 38 | FD_SET(0, &exception); |
39 | select(1, &in, NULL, &exception, NULL); | ||
37 | 40 | ||
38 | setenv("LESS", "FRSX", 0); | 41 | setenv("LESS", "FRSX", 0); |
39 | } | 42 | } |