Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/pppd/chat [PR/5685] Set ONLCR bit in oflags of tty...



details:   https://anonhg.NetBSD.org/src/rev/b4ea50d43096
branches:  trunk
changeset: 472745:b4ea50d43096
user:      jeremy <jeremy%NetBSD.org@localhost>
date:      Thu May 06 08:59:21 1999 +0000

description:
[PR/5685]  Set ONLCR bit in oflags of tty mode to prevent hanging in
absence of carrier.  From Simon J. Gerraty <sjg%quick.com.au@localhost>.

diffstat:

 usr.sbin/pppd/chat/chat.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9d09d718acca -r b4ea50d43096 usr.sbin/pppd/chat/chat.c
--- a/usr.sbin/pppd/chat/chat.c Thu May 06 07:28:51 1999 +0000
+++ b/usr.sbin/pppd/chat/chat.c Thu May 06 08:59:21 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chat.c,v 1.15 1998/09/02 20:55:55 christos Exp $       */
+/*     $NetBSD: chat.c,v 1.16 1999/05/06 08:59:21 jeremy Exp $ */
 
 /*
  *     Chat -- a program for automatic session establishment (i.e. dial
@@ -84,7 +84,7 @@
 #if 0
 static char rcsid[] = "Id: chat.c,v 1.19 1998/03/24 23:57:48 paulus Exp ";
 #else
-__RCSID("$NetBSD: chat.c,v 1.15 1998/09/02 20:55:55 christos Exp $");
+__RCSID("$NetBSD: chat.c,v 1.16 1999/05/06 08:59:21 jeremy Exp $");
 #endif
 #endif
 
@@ -578,7 +578,7 @@
     have_tty_parameters  = 1;
 
     t.c_iflag     |= IGNBRK | ISTRIP | IGNPAR;
-    t.c_oflag      = 0;
+    t.c_oflag     |= OPOST | ONLCR;
     t.c_lflag      = 0;
     t.c_cc[VERASE] =
     t.c_cc[VKILL]  = 0;



Home | Main Index | Thread Index | Old Index