ASF Bugzilla – Attachment 26520 Details for
Bug 50619
After changing resolv.conf signaling httpd doesn't pick up the changes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to add a call to res_init.
res_init.patch (text/plain), 995 bytes, created by
Matt Miller
on 2011-01-19 13:56:21 UTC
(
hide
)
Description:
Patch to add a call to res_init.
Filename:
MIME Type:
Creator:
Matt Miller
Created:
2011-01-19 13:56:21 UTC
Size:
995 bytes
patch
obsolete
>--- httpd/build/server/main.c.old 2011-01-19 10:46:04.000000000 -0800 >+++ httpd/build/server/main.c 2011-01-19 10:40:04.000000000 -0800 >@@ -40,6 +40,10 @@ > #include "ap_mpm.h" > #include "mpm_common.h" > >+#include <netinet/in.h> >+#include <arpa/nameser.h> >+#include <resolv.h> >+ > /* WARNING: Win32 binds http_main.c dynamically to the server. Please place > * extern functions and global data in another appropriate module. > * >@@ -670,6 +674,14 @@ > ap_register_hooks(*mod, pconf); > } > >+ /* >+ * resolv.conf may have changed, so this will read/reread it. >+ */ >+ if (res_init() == -1) { >+ ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, 0, >+ NULL, "Resolver initialization failed."); >+ } >+ > /* This is a hack until we finish the code so that it only reads > * the config file once and just operates on the tree already in > * memory. rbb >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 50619
: 26520