aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/xntpd
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1997-01-18 08:43:21 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1997-01-18 08:43:21 +0000
commit5f2d7aa755e1b0b3d6e410bc44e5e9228a1569cc (patch)
tree6fe0209bd116e648b8361fcd607a61986a1091d3 /usr.sbin/xntpd
parentdfe0d2158ec231adafbcf7761d0aaa657ebcda8c (diff)
Notes
Diffstat (limited to 'usr.sbin/xntpd')
-rw-r--r--usr.sbin/xntpd/parse/util/dcfd.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/usr.sbin/xntpd/parse/util/dcfd.c b/usr.sbin/xntpd/parse/util/dcfd.c
index 0a1f7fe8e048..38980714eb2b 100644
--- a/usr.sbin/xntpd/parse/util/dcfd.c
+++ b/usr.sbin/xntpd/parse/util/dcfd.c
@@ -1389,6 +1389,21 @@ main(argc, argv)
#else
(void) alarm(1<<ADJINTERVAL);
#endif
+#if defined(SYS_FREEBSD) && defined(CONRAD)
+ if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) & ~O_NONBLOCK) == -1)
+ perror("F_SETFL");
+
+ {
+ int i;
+
+ if (ioctl(fd, TIOCMGET, &i) == -1)
+ perror("TIOCMGET");
+ i |= TIOCM_DTR;
+ i &= ~TIOCM_RTS;
+ if (ioctl(fd, TIOCMSET, &i) == -1)
+ perror("TIOCMSET");
+ }
+#endif
#if defined(SYS_FREEBSD) && defined(BOEDER)
if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) & ~O_NONBLOCK) == -1)
perror("F_SETFL");