slabtop, vmstat, watch: remove file descriptor constants

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola
2012-03-08 21:49:49 +01:00
parent 7267c3a22b
commit 94fa402d4b
3 changed files with 3 additions and 3 deletions

View File

@@ -414,7 +414,7 @@ int main(int argc, char *argv[])
tv.tv_sec = delay;
tv.tv_usec = 0;
if (select(STDOUT_FILENO, &readfds, NULL, NULL, &tv) > 0) {
if (read(0, &c, 1) != 1)
if (read(STDIN_FILENO, &c, 1) != 1)
break;
parse_input(c);
}