diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-12-03 19:24:08 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-12-12 08:15:36 +0100 |
commit | a99a1d775fdbf4bf970a95ae4e29522a6319b071 (patch) | |
tree | 322c800cad79113442760b09d28967ee586f32e9 /patches/glibc-2.8/generic/gentoo/1055_all_glibc-resolv-dynamic.patch | |
parent | 46aa79fb05a79b291ea8976abe74498163bc6f33 (diff) | |
download | OSELAS.Toolchain-a99a1d775fdbf4bf970a95ae4e29522a6319b071.tar.gz OSELAS.Toolchain-a99a1d775fdbf4bf970a95ae4e29522a6319b071.tar.xz |
remove obsolte patches
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/glibc-2.8/generic/gentoo/1055_all_glibc-resolv-dynamic.patch')
-rw-r--r-- | patches/glibc-2.8/generic/gentoo/1055_all_glibc-resolv-dynamic.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/patches/glibc-2.8/generic/gentoo/1055_all_glibc-resolv-dynamic.patch b/patches/glibc-2.8/generic/gentoo/1055_all_glibc-resolv-dynamic.patch deleted file mode 100644 index 472a78f..0000000 --- a/patches/glibc-2.8/generic/gentoo/1055_all_glibc-resolv-dynamic.patch +++ /dev/null @@ -1,44 +0,0 @@ -ripped from SuSE - -if /etc/resolv.conf is updated, then make sure applications -already running get the updated information. - -http://bugs.gentoo.org/177416 - ---- - resolv/res_libc.c | 15 +++++++++++++++ - 1 file changed, 15 insertions(+) - -Index: glibc-2.8-20080811/resolv/res_libc.c -=================================================================== ---- glibc-2.8-20080811.orig/resolv/res_libc.c -+++ glibc-2.8-20080811/resolv/res_libc.c -@@ -22,6 +22,7 @@ - #include <arpa/nameser.h> - #include <resolv.h> - #include <bits/libc-lock.h> -+#include <sys/stat.h> - - - /* The following bit is copied from res_data.c (where it is #ifdef'ed -@@ -95,6 +96,20 @@ int - __res_maybe_init (res_state resp, int preinit) - { - if (resp->options & RES_INIT) { -+ static time_t last_mtime, last_check; -+ time_t now; -+ struct stat statbuf; -+ -+ time (&now); -+ if (now != last_check) { -+ last_check = now; -+ if (stat (_PATH_RESCONF, &statbuf) == 0 && last_mtime != statbuf.st_mtime) { -+ last_mtime = statbuf.st_mtime; -+ atomicinclock (lock); -+ atomicinc (__res_initstamp); -+ atomicincunlock (lock); -+ } -+ } - if (__res_initstamp != resp->_u._ext.initstamp) { - if (resp->nscount > 0) { - __res_iclose (resp, true); |