diff options
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/tty.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/ppp/tty.c b/usr.sbin/ppp/tty.c index 4cf7192..0bd64d3 100644 --- a/usr.sbin/ppp/tty.c +++ b/usr.sbin/ppp/tty.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: tty.c,v 1.9 1999/06/05 21:35:57 brian Exp $ + * $Id: tty.c,v 1.10 1999/08/06 20:04:07 brian Exp $ */ #include <sys/param.h> @@ -204,8 +204,10 @@ tty_Raw(struct physical *p) else ios.c_cflag |= CLOCAL; - if (p->type != PHYS_DEDICATED) + if (p->type != PHYS_DEDICATED) { ios.c_cflag |= HUPCL; + ios.c_cflag &= ~CLOCAL; + } tcsetattr(p->fd, TCSANOW, &ios); } @@ -410,8 +412,10 @@ tty_Create(struct physical *p) ios.c_iflag |= IXOFF; } ios.c_iflag |= IXON; - if (p->type != PHYS_DEDICATED) + if (p->type != PHYS_DEDICATED) { ios.c_cflag |= HUPCL; + ios.c_cflag &= ~CLOCAL; + } if (p->type != PHYS_DIRECT) { /* Change tty speed when we're not in -direct mode */ |