use ns_g_defaultpidfile

This commit is contained in:
Bob Halley 2000-02-08 21:15:41 +00:00
parent 68e46ce9ee
commit bfc2d518d1
2 changed files with 2 additions and 3 deletions

View file

@ -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);
/*

View file

@ -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);