diff options
author | Chris Kuethe <ckuethe@cvs.openbsd.org> | 2009-10-31 02:53:12 +0000 |
---|---|---|
committer | Chris Kuethe <ckuethe@cvs.openbsd.org> | 2009-10-31 02:53:12 +0000 |
commit | 84fb3053dd046225edb7868a8dd17410070e5b8c (patch) | |
tree | 5bbcc04f53f4c8955a228185e4be5463b4d18445 /sbin | |
parent | af6b96f5a5ec4159a6952eefcc901eba6811b9a2 (diff) |
If the nmea(4) or endrun(4) timing disciplines are selected ignore status
lines; this prevents poll(2) from saying the fd has data to be read, when
it only had a status line change. Prevents ldattach from exiting when
relaying data to gpsd while being driven by a gps with 1PPS.
ok deraadt
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ldattach/ldattach.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/ldattach/ldattach.c b/sbin/ldattach/ldattach.c index 5c73d50190d..8cc4d82f66b 100644 --- a/sbin/ldattach/ldattach.c +++ b/sbin/ldattach/ldattach.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ldattach.c,v 1.13 2009/10/28 05:14:00 ckuethe Exp $ */ +/* $OpenBSD: ldattach.c,v 1.14 2009/10/31 02:53:11 ckuethe Exp $ */ /* * Copyright (c) 2007, 2008 Marc Balmer <mbalmer@openbsd.org> @@ -277,6 +277,7 @@ main(int argc, char *argv[]) warnx("TIOCSTSTAMP"); goto bail_out; } + tty.c_cflag |= CLOCAL; /* FALLTHROUGH */ case SLIPDISC: tty.c_iflag = 0; |