- ioctl(TIOCSETP, ln, &stbuf);
- ioctl(TIOCEXCL, ln, (struct sgttyb *)NULL);
- ioctl(TIOCHPCL, ln, (struct sgttyb *)NULL);
+ stbuf.sg_flags &= ~ECHO;
+ }
+ ioctl(ln, TIOCSETP, &stbuf);
+ ioctl(ln, TIOCEXCL, (struct sgttyb *)NULL);
+ ioctl(ln, TIOCHPCL, (struct sgttyb *)NULL);