summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_inq.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-05-21 16:48:06 +0000
committered <ed@FreeBSD.org>2009-05-21 16:48:06 +0000
commite3099960700585da395431726e1f213f8ffb8f32 (patch)
tree12694e756c38b130a0085a183e0101490da04f0a /sys/kern/tty_inq.c
parent53187f61be4355772a244568043cea724bdf24c0 (diff)
downloadFreeBSD-src-e3099960700585da395431726e1f213f8ffb8f32.zip
FreeBSD-src-e3099960700585da395431726e1f213f8ffb8f32.tar.gz
Enable secure TTY input buffer flushing by default.
I'm leaving the sysctl there. If people really notice a slowdown, they can revert to the old behaviour. Discussed with: kib
Diffstat (limited to 'sys/kern/tty_inq.c')
-rw-r--r--sys/kern/tty_inq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty_inq.c b/sys/kern/tty_inq.c
index 0ef4079..c618a0a 100644
--- a/sys/kern/tty_inq.c
+++ b/sys/kern/tty_inq.c
@@ -68,7 +68,7 @@ SYSCTL_ULONG(_kern, OID_AUTO, tty_inq_nfast, CTLFLAG_RD,
static unsigned long ttyinq_nslow = 0;
SYSCTL_ULONG(_kern, OID_AUTO, tty_inq_nslow, CTLFLAG_RD,
&ttyinq_nslow, 0, "Buffered reads to userspace on input");
-static int ttyinq_flush_secure = 0;
+static int ttyinq_flush_secure = 1;
SYSCTL_INT(_kern, OID_AUTO, tty_inq_flush_secure, CTLFLAG_RW,
&ttyinq_flush_secure, 0, "Zero buffers while flushing");
OpenPOWER on IntegriCloud