From owner-freebsd-bugs Wed Sep 11 11:30:03 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA20191 for bugs-outgoing; Wed, 11 Sep 1996 11:30:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA20183; Wed, 11 Sep 1996 11:30:01 -0700 (PDT) Date: Wed, 11 Sep 1996 11:30:01 -0700 (PDT) Message-Id: <199609111830.LAA20183@freefall.freebsd.org> To: freebsd-bugs Cc: From: Bruce Evans Subject: Re: bin/1598: tip leaves OPOST set on controlling terminal Reply-To: Bruce Evans Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/1598; it has been noted by GNATS. From: Bruce Evans To: cedar!jeremy@beaver.cs.washington.edu, FreeBSD-gnats-submit@freebsd.org Cc: Subject: Re: bin/1598: tip leaves OPOST set on controlling terminal Date: Thu, 12 Sep 1996 04:18:40 +1000 >*** tip.c-orig Tue Sep 10 23:37:04 1996 >--- tip.c Tue Sep 10 23:37:24 1996 >*************** >*** 223,228 **** >--- 223,229 ---- > ctermios.c_iflag = (ISTRIP|IXON|BRKINT); > ctermios.c_lflag = (PENDIN|IEXTEN|ISIG|ECHOE); > #endif >+ ctermios.c_oflag = 0; > ctermios.c_cflag = (CLOCAL|HUPCL|CREAD|CS8); > ctermios.c_cc[VINTR] = ctermios.c_cc[VQUIT] = -1; > ctermios.c_cc[VSUSP] = ctermios.c_cc[VDSUSP] = ctermios.c_cc[VDISCARD] = Every line in this is buggy. Setting flags other than the POSIX ones gives undefined behaviour. In practice, it may clear CRTSCTS. -1 should be _POSIX_VDISABLE. It works because (cc_t)-1 happens to equal _POSIX_VDISABLE under FreeBSD. Bruce