use ns_g_defaultpidfile
This commit is contained in:
@@ -75,8 +75,7 @@ EXTERN isc_boolean_t ns_g_coreok INIT(ISC_TRUE);
|
||||
EXTERN const char * ns_g_chrootdir INIT(NULL);
|
||||
EXTERN isc_boolean_t ns_g_foreground INIT(ISC_FALSE);
|
||||
|
||||
EXTERN const char * ns_g_defaultpidfile INIT("/var/run/named.pid");
|
||||
EXTERN char * ns_g_pidfile INIT(NULL);
|
||||
EXTERN char * ns_g_defaultpidfile INIT("/var/run/named.pid");
|
||||
EXTERN const char * ns_g_username INIT(NULL);
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -876,7 +876,7 @@ load_configuration(const char *filename, ns_server_t *server,
|
||||
|
||||
if (dns_c_ctx_getpidfilename(configctx, &pidfilename) ==
|
||||
ISC_R_NOTFOUND)
|
||||
pidfilename = "/var/run/named.pid";
|
||||
pidfilename = ns_g_defaultpidfile;
|
||||
ns_os_writepidfile(pidfilename);
|
||||
|
||||
dns_aclconfctx_destroy(&aclconfctx);
|
||||
|
||||
Reference in New Issue
Block a user