diff options
author | Ron Yorston <rmy@pobox.com> | 2014-01-21 09:40:50 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2014-01-21 09:40:50 +0000 |
commit | baac891244b03eec99cf14a724ebcdc5877bd4e7 (patch) | |
tree | a59e8b5156e8d8eb5ea01c518e80f9173c831033 /procps | |
parent | 61a0fc571381226c48728b262495c1c5eafc4fed (diff) | |
parent | 3b394781b5b9301fc489d9bfff6fbefb4db190f3 (diff) | |
download | busybox-w32-baac891244b03eec99cf14a724ebcdc5877bd4e7.tar.gz busybox-w32-baac891244b03eec99cf14a724ebcdc5877bd4e7.tar.bz2 busybox-w32-baac891244b03eec99cf14a724ebcdc5877bd4e7.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'procps')
-rw-r--r-- | procps/top.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/procps/top.c b/procps/top.c index 51f1c1aed..530f45fa1 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -917,17 +917,12 @@ enum { | |||
917 | #if ENABLE_FEATURE_USE_TERMIOS | 917 | #if ENABLE_FEATURE_USE_TERMIOS |
918 | static unsigned handle_input(unsigned scan_mask, unsigned interval) | 918 | static unsigned handle_input(unsigned scan_mask, unsigned interval) |
919 | { | 919 | { |
920 | struct pollfd pfd[1]; | ||
921 | |||
922 | if (option_mask32 & OPT_EOF) { | 920 | if (option_mask32 & OPT_EOF) { |
923 | /* EOF on stdin ("top </dev/null") */ | 921 | /* EOF on stdin ("top </dev/null") */ |
924 | sleep(interval); | 922 | sleep(interval); |
925 | return scan_mask; | 923 | return scan_mask; |
926 | } | 924 | } |
927 | 925 | ||
928 | pfd[0].fd = 0; | ||
929 | pfd[0].events = POLLIN; | ||
930 | |||
931 | while (1) { | 926 | while (1) { |
932 | int32_t c; | 927 | int32_t c; |
933 | 928 | ||