Re: [PATCH] Add code to call res_init in glibc so that we can make use of updated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jesse Keating wrote:
+# HAAAAAACK because glibc doesn't notice /etc/resolv.conf changes...
+def _reset_resolver():
+    '''Attempt to reset the system resolver.'''
+    # mostly lifted from smolt
+
+    try:
+        # This is sure to break at some point when soname changes.
+        resolv = ctypes.CDLL("libresolv.so.2")

Would using "libresolv.so" suffice?

Kind regards,

Jeroen van Meeuwen
-kanarip

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux