diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2008-09-12 10:46:10 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2008-09-12 10:46:10 +0000 |
commit | 8efa688f67e8149536c1a09aa34320c3bf9cf5cb (patch) | |
tree | 7748a22eeede2dcfb58dacef5b45e6b5b98c5d02 /usr.sbin/ntpd/ntpd.h | |
parent | ac7aa1dfd1e68313c660e1983ec5b4be3e5b2321 (diff) |
move dns lookups to its own (privilege revoking, not chrooting) process.
reason: the parent process must never ever block, but the dns routines can.
last not least this fixes ntpd -s 'hanging' for a long time.
tested by a couple of people
Diffstat (limited to 'usr.sbin/ntpd/ntpd.h')
-rw-r--r-- | usr.sbin/ntpd/ntpd.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/ntpd.h b/usr.sbin/ntpd/ntpd.h index 71f7544302a..b47857709be 100644 --- a/usr.sbin/ntpd/ntpd.h +++ b/usr.sbin/ntpd/ntpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.h,v 1.95 2008/06/10 03:46:09 naddy Exp $ */ +/* $OpenBSD: ntpd.h,v 1.96 2008/09/12 10:46:09 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -316,3 +316,6 @@ int sensor_scan(void); void sensor_query(struct ntp_sensor *); int sensor_hotplugfd(void); void sensor_hotplugevent(int); + +/* ntp_dns.c */ +pid_t ntp_dns(int[2], struct ntpd_conf *, struct passwd *); |