diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2008-06-10 00:25:04 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2008-06-10 00:25:04 +0000 |
commit | 6a83d9877acf5ba85569ba555db577f50952cb73 (patch) | |
tree | 3073a6df189810b8f823c5135901ae7ce97750aa /sbin/ldattach/ldattach.c | |
parent | 130435ff33c8c8efa15bb35fc9737c360e716482 (diff) |
correctly setup the tty line for NMEA devices, especially turn off echo
to the device.
found by ckuethe, fixed and tested with ckuethe
Diffstat (limited to 'sbin/ldattach/ldattach.c')
-rw-r--r-- | sbin/ldattach/ldattach.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/ldattach/ldattach.c b/sbin/ldattach/ldattach.c index 8dcf9c1a49b..d50a597da44 100644 --- a/sbin/ldattach/ldattach.c +++ b/sbin/ldattach/ldattach.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ldattach.c,v 1.7 2008/06/09 23:15:55 mbalmer Exp $ */ +/* $OpenBSD: ldattach.c,v 1.8 2008/06/10 00:25:03 mbalmer Exp $ */ /* * Copyright (c) 2007, 2008 Marc Balmer <mbalmer@openbsd.org> @@ -269,6 +269,10 @@ main(int argc, char *argv[]) warnx("TIOCSTSTAMP"); goto bail_out; } + tty.c_cc[VMIN] = tty.c_cc[VTIME] = 0; + tty.c_iflag = 0; + tty.c_lflag = 0; + tty.c_oflag = 0; break; case SLIPDISC: tty.c_iflag = 0; |