diff options
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 | ||
