diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-05-30 16:26:57 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-05-30 16:27:52 +0300 |
commit | e00d6745ffc1fc9417559809c1770e340495b50e (patch) | |
tree | a5a91a5e38aad17115eab57fdd0e89181d8b8c23 /main/chrony/0001-uclibc-res-do-not-call-res_init.patch | |
parent | 12d8fbaf1947587969d5e88154a0bdce4808320c (diff) | |
download | aports-e00d6745ffc1fc9417559809c1770e340495b50e.tar.bz2 aports-e00d6745ffc1fc9417559809c1770e340495b50e.tar.xz |
main/chrony: improve behaviour if network is unavailable at startup
main uclibc related workaround, but also reduce the delays between
name resolution attempts.
Diffstat (limited to 'main/chrony/0001-uclibc-res-do-not-call-res_init.patch')
-rw-r--r-- | main/chrony/0001-uclibc-res-do-not-call-res_init.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/main/chrony/0001-uclibc-res-do-not-call-res_init.patch b/main/chrony/0001-uclibc-res-do-not-call-res_init.patch new file mode 100644 index 000000000..bbd18255c --- /dev/null +++ b/main/chrony/0001-uclibc-res-do-not-call-res_init.patch @@ -0,0 +1,26 @@ +From 6908e8eedf5232519a1f85942249040051e48fa8 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi> +Date: Wed, 30 May 2012 16:23:50 +0300 +Subject: [PATCH 1/2] uclibc/res: do not call res_init + +it prevents rereading of resolv.conf in uclibc, but enables that +for glibc. +--- + nameserv.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/nameserv.c b/nameserv.c +index 1770845..9ecf1d9 100644 +--- a/nameserv.c ++++ b/nameserv.c +@@ -177,7 +177,6 @@ DNS_IPAddress2Name(IPAddr *ip_addr, char *name, int len) + void + DNS_Reload(void) + { +- res_init(); + } + + /* ================================================== */ +-- +1.7.10.2 + |