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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ptm.c
          +++ new/usr/src/uts/common/io/ptm.c
↓ open down ↓ 372 lines elided ↑ open up ↑
 373  373           * set up hi/lo water marks on stream head read queue
 374  374           * and add controlling tty if not set
 375  375           */
 376  376          mop->b_datap->db_type = M_SETOPTS;
 377  377          mop->b_wptr += sizeof (struct stroptions);
 378  378          sop = (struct stroptions *)mop->b_rptr;
 379  379          if (oflag & FNOCTTY)
 380  380                  sop->so_flags = SO_HIWAT | SO_LOWAT;
 381  381          else
 382  382                  sop->so_flags = SO_HIWAT | SO_LOWAT | SO_ISTTY;
 383      -        sop->so_hiwat = 512;
      383 +        sop->so_hiwat = _TTY_BUFSIZ;
 384  384          sop->so_lowat = 256;
 385  385          putnext(rqp, mop);
 386  386  
 387  387          /*
 388  388           * The input, devp, is a major device number, the output is put
 389  389           * into the same parm as a major,minor pair.
 390  390           */
 391  391          *devp = makedevice(getmajor(*devp), dminor);
 392  392  
 393  393          return (0);
↓ open down ↓ 311 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX