diff options
author | brian <brian@FreeBSD.org> | 1999-08-09 23:38:56 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-08-09 23:38:56 +0000 |
commit | b3409b1e8c3460f9f5c102e31f3eedcd2c7dd905 (patch) | |
tree | e18b0c4983ab0fe00e6196994dbb195bb6d68a25 /usr.sbin/ppp | |
parent | c45cdc42a254df76d7f9a608b069fec9f03e8174 (diff) | |
download | FreeBSD-src-b3409b1e8c3460f9f5c102e31f3eedcd2c7dd905.zip FreeBSD-src-b3409b1e8c3460f9f5c102e31f3eedcd2c7dd905.tar.gz |
Remove CLOCAL when we're not in -dedicated mode.
PR: 13046
Submitted by: Vsevolod Lobko <seva@alex-ua.com>
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 */ |