+2001-06-02 Harlan Stenn <stenn@whimsy.udel.edu>
+
+ * ntpd/ntp_refclock.c (refclock_open): Add O_NOCTTY to the open()
+ flags when opening a serial port.
+ Reported by: joseph lang <tcnojl1@earthlink.net>
+
2001-05-31 Harlan Stenn <stenn@whimsy.udel.edu>
+ * html/notes.htm: Typo fix.
+ From: John Stone <johns@ks.uiuc.edu>
+
* configure.in: 4.0.99m-rc1
- * html/monopt.htm: Typo.
+ * html/monopt.htm: Typo fix.
* html/confopt.htm: Cruft removal.
From: John Stone <johns@ks.uiuc.edu>
+* Huff-n-Puff filter
* Preparation for OpenSSL support
* Resolver changes/improvements are not backward compatible with mode 7
requests (which are implementation-specific anyway)
<H4>
Traffic Monitoring</H4>
<TT>ntpd</TT> handles peers whose stratum is higher than the stratum of
-the local server and pollers using client mode by a fast path which
+the local server and polls using client mode by a fast path which
minimizes
the work done in responding to their polls, and normally retains no
memory
#ifdef TIOCMGET
u_long ltemp;
#endif /* TIOCMGET */
+ int omode;
/*
* Open serial port and set default options
*/
flags = lflags;
+
+ omode = O_RDWR;
#ifdef O_NONBLOCK
- fd = open(dev, O_RDWR | O_NONBLOCK, 0777);
-#else
- fd = open(dev, O_RDWR, 0777);
-#endif /* O_NONBLOCK */
+ omode |= O_NONBLOCK;
+#endif
+#ifdef O_NOCTTY
+ omode |= O_NOCTTY;
+#endif
+
+ fd = open(dev, omode, 0777);
+
if (fd < 0) {
msyslog(LOG_ERR, "refclock_open: %s: %m", dev);
return (0);