=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/top.c,v retrieving revision 1.35 retrieving revision 1.36 diff -c -r1.35 -r1.36 *** src/usr.bin/top/top.c 2004/10/07 06:26:12 1.35 --- src/usr.bin/top/top.c 2005/04/13 02:33:09 1.36 *************** *** 1,4 **** ! /* $OpenBSD: top.c,v 1.35 2004/10/07 06:26:12 otto Exp $ */ /* * Top users/processes display for Unix --- 1,4 ---- ! /* $OpenBSD: top.c,v 1.36 2005/04/13 02:33:09 deraadt Exp $ */ /* * Top users/processes display for Unix *************** *** 593,599 **** * command strchr */ while (1) { ! len = read(0, &ch, 1); if (len == -1 && errno == EINTR) continue; if (len == 0) --- 593,599 ---- * command strchr */ while (1) { ! len = read(STDIN_FILENO, &ch, 1); if (len == -1 && errno == EINTR) continue; if (len == 0) *************** *** 650,656 **** standout("Hit any key to continue: "); fflush(stdout); while (1) { ! len = read(0, &ch, 1); if (len == -1 && errno == EINTR) continue; if (len == 0) --- 650,656 ---- standout("Hit any key to continue: "); fflush(stdout); while (1) { ! len = read(STDIN_FILENO, &ch, 1); if (len == -1 && errno == EINTR) continue; if (len == 0) *************** *** 673,679 **** standout("Hit any key to continue: "); fflush(stdout); while (1) { ! len = read(0, &ch, 1); if (len == -1 && errno == EINTR) continue; if (len == 0) --- 673,679 ---- standout("Hit any key to continue: "); fflush(stdout); while (1) { ! len = read(STDIN_FILENO, &ch, 1); if (len == -1 && errno == EINTR) continue; if (len == 0)