aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/tty.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1999-08-09 23:38:56 +0000
committerBrian Somers <brian@FreeBSD.org>1999-08-09 23:38:56 +0000
commit02b485a4b86c85852ca5df8c9f13243982ccf900 (patch)
tree132a0613d46e48a775c8b60f65ffc0615104ca70 /usr.sbin/ppp/tty.c
parent6017572204af26434ef3674fb1712a0efbef1495 (diff)
downloadsrc-02b485a4b86c85852ca5df8c9f13243982ccf900.tar.gz
src-02b485a4b86c85852ca5df8c9f13243982ccf900.zip
Remove CLOCAL when we're not in -dedicated mode.
PR: 13046 Submitted by: Vsevolod Lobko <seva@alex-ua.com>
Notes
Notes: svn path=/head/; revision=49587
Diffstat (limited to 'usr.sbin/ppp/tty.c')
-rw-r--r--usr.sbin/ppp/tty.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/ppp/tty.c b/usr.sbin/ppp/tty.c
index 4cf7192995bb..0bd64d3b3c7c 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 */