And then rebuild and install a new kernel:
KK=`sysctl -n kern.osversion | cut -d# -f1`
cd /usr/src/sys/arch/`machine`/compile/$KK
make obj
make config
make
make install
/*
- * Process input of a single character received on a tty. Returns 0 for
- * simple operations, 1 for costly ones (ptcwrite needs to know).
+ * Process input of a single character received on a tty. Returns 0 normally,
+ * 1 if a costly operation was reached.
*/
int
ttyinput(int c, struct tty *tp)
@@ -2005,11 +2005,7 @@ ttyretype(struct tty *tp)
tp->t_rocount = tp->t_rawq.c_cc;
tp->t_rocol = 0;
- /*
- * Yield because of expense, or possible ptcwrite() injection flood.
- * Also check for interrupt, and return upwards.
- */
- return tsleep_nsec(tp, TTIPRI | PCATCH, "ttyretype", 1);
+ return (1);
}