diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/top.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/top.c b/procps/top.c index ac3b7e5a2..e55cecccb 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -924,7 +924,7 @@ int top_main(int argc, char **argv) | |||
924 | #if !ENABLE_FEATURE_USE_TERMIOS | 924 | #if !ENABLE_FEATURE_USE_TERMIOS |
925 | sleep(interval); | 925 | sleep(interval); |
926 | #else | 926 | #else |
927 | if (poll(pfd, 1, interval * 1000) != 0) { | 927 | if (safe_poll(pfd, 1, interval * 1000) > 0) { |
928 | if (read(0, &c, 1) != 1) /* signal */ | 928 | if (read(0, &c, 1) != 1) /* signal */ |
929 | break; | 929 | break; |
930 | if (c == initial_settings.c_cc[VINTR]) | 930 | if (c == initial_settings.c_cc[VINTR]) |