Print this page
8527 tty buffer/queue sizes should be larger

@@ -213,11 +213,11 @@
 static struct module_info zc_info = {
         31337,  /* c0z we r hAx0rs */
         "zcons",
         0,
         INFPSZ,
-        2048,
+        _TTY_BUFSIZ,
         128
 };
 
 static struct qinit zc_rinit = {
         NULL,

@@ -499,11 +499,11 @@
         sop = (struct stroptions *)(void *)mop->b_rptr;
         if (oflag & FNOCTTY)
                 sop->so_flags = SO_HIWAT | SO_LOWAT;
         else
                 sop->so_flags = SO_HIWAT | SO_LOWAT | SO_ISTTY;
-        sop->so_hiwat = 512;
+        sop->so_hiwat = _TTY_BUFSIZ;
         sop->so_lowat = 256;
         putnext(rqp, mop);
 
         return (0);
 }

@@ -574,11 +574,11 @@
          */
         mop->b_datap->db_type = M_SETOPTS;
         mop->b_wptr += sizeof (struct stroptions);
         sop = (struct stroptions *)(void *)mop->b_rptr;
         sop->so_flags = SO_HIWAT | SO_LOWAT | SO_ISTTY;
-        sop->so_hiwat = 512;
+        sop->so_hiwat = _TTY_BUFSIZ;
         sop->so_lowat = 256;
         putnext(rqp, mop);
 
         return (0);
 }