summaryrefslogtreecommitdiff
path: root/procps/top.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/top.c')
-rw-r--r--procps/top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/top.c b/procps/top.c
index ac3b7e5..e55cecc 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -924,7 +924,7 @@ int top_main(int argc, char **argv)
#if !ENABLE_FEATURE_USE_TERMIOS
sleep(interval);
#else
- if (poll(pfd, 1, interval * 1000) != 0) {
+ if (safe_poll(pfd, 1, interval * 1000) > 0) {
if (read(0, &c, 1) != 1) /* signal */
break;
if (c == initial_settings.c_cc[VINTR])