summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-06-18 14:08:44 +0000
committerache <ache@FreeBSD.org>1995-06-18 14:08:44 +0000
commitb47fb59bab0f70484bde1d04274af8a9a06a0dea (patch)
treea9a012e0a25c8d3e794b14956b6ae8c9f4c210d4 /bin
parentb948d2a3ae060efb4f29ec879f247675a2255810 (diff)
downloadFreeBSD-src-b47fb59bab0f70484bde1d04274af8a9a06a0dea.zip
FreeBSD-src-b47fb59bab0f70484bde1d04274af8a9a06a0dea.tar.gz
When filec active, TCSANOW was used in any case instead of
sensing TCSADRAIN/TCSAFLUSH Obtained from: NetBSD
Diffstat (limited to 'bin')
-rw-r--r--bin/csh/file.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/csh/file.c b/bin/csh/file.c
index 0d1a0b5..639e09c 100644
--- a/bin/csh/file.c
+++ b/bin/csh/file.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: file.c,v 1.2 1994/09/24 02:54:03 davidg Exp $
+ * $Id: file.c,v 1.3 1995/05/30 00:06:33 rgrimes Exp $
*/
#ifndef lint
@@ -112,14 +112,14 @@ static void
setup_tty(on)
int on;
{
- static struct termios tchars;
+ struct termios tchars;
(void) tcgetattr(SHIN, &tchars);
if (on) {
tchars.c_cc[VEOL] = ESC;
if (tchars.c_lflag & ICANON)
- on = TCSANOW;
+ on = TCSADRAIN;
else {
on = TCSAFLUSH;
tchars.c_lflag |= ICANON;
@@ -127,10 +127,10 @@ setup_tty(on)
}
else {
tchars.c_cc[VEOL] = _POSIX_VDISABLE;
- on = TCSANOW;
+ on = TCSADRAIN;
}
- (void) tcsetattr(SHIN, TCSANOW, &tchars);
+ (void) tcsetattr(SHIN, on, &tchars);
}
/*
OpenPOWER on IntegriCloud