diff options
author | 2009-10-31 02:53:11 +0000 | |
---|---|---|
committer | 2009-10-31 02:53:11 +0000 | |
commit | aabbc470888682baa8f7003f2255661e707cc4b1 (patch) | |
tree | dc383e2dc5ccdfea285984f01d22d72c480c17e6 | |
parent | Make sure the descriptor is writable for some operations. (diff) | |
download | wireguard-openbsd-aabbc470888682baa8f7003f2255661e707cc4b1.tar.xz wireguard-openbsd-aabbc470888682baa8f7003f2255661e707cc4b1.zip |
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
-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; |