diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/nmeter.c | 2 | ||||
-rw-r--r-- | procps/top.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/procps/nmeter.c b/procps/nmeter.c index b6e754b7a..798afcf16 100644 --- a/procps/nmeter.c +++ b/procps/nmeter.c | |||
@@ -98,7 +98,7 @@ static void print_outbuf(void) | |||
98 | { | 98 | { |
99 | int sz = cur_outbuf - outbuf; | 99 | int sz = cur_outbuf - outbuf; |
100 | if (sz > 0) { | 100 | if (sz > 0) { |
101 | xwrite(1, outbuf, sz); | 101 | xwrite(STDOUT_FILENO, outbuf, sz); |
102 | cur_outbuf = outbuf; | 102 | cur_outbuf = outbuf; |
103 | } | 103 | } |
104 | } | 104 | } |
diff --git a/procps/top.c b/procps/top.c index de30ffb28..b861deb66 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -888,7 +888,7 @@ int top_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
888 | /* batch mode, or EOF on stdin ("top </dev/null") */ | 888 | /* batch mode, or EOF on stdin ("top </dev/null") */ |
889 | sleep(interval); | 889 | sleep(interval); |
890 | else if (safe_poll(pfd, 1, interval * 1000) > 0) { | 890 | else if (safe_poll(pfd, 1, interval * 1000) > 0) { |
891 | if (safe_read(0, &c, 1) != 1) { /* error/EOF? */ | 891 | if (safe_read(STDIN_FILENO, &c, 1) != 1) { /* error/EOF? */ |
892 | option_mask32 |= OPT_EOF; | 892 | option_mask32 |= OPT_EOF; |
893 | continue; | 893 | continue; |
894 | } | 894 | } |