Commit 9bdb01e6 authored by Mark Andrews's avatar Mark Andrews
Browse files

1049. [func] pid-file "none"; will disable writing a pid file.

                       [RT #1848]
parent ff52c720
1049. [func] pid-file "none"; will disable writing a pid file.
[RT #1848]
1048. [bug] Servers built with -DISC_MEM_USE_INTERNAL_MALLOC=1
didn't work.
......
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: os.c,v 1.51 2001/10/08 07:46:07 marka Exp $ */
/* $Id: os.c,v 1.52 2001/10/12 05:40:39 marka Exp $ */
#include <config.h>
#include <stdarg.h>
......@@ -479,6 +479,8 @@ ns_os_writepidfile(const char *filename) {
cleanup_pidfile();
if (strcmp(pidfile, "none") == 0)
return;
len = strlen(filename);
pidfile = malloc(len + 1);
if (pidfile == NULL) {
......
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: os.c,v 1.8 2001/10/08 07:46:10 marka Exp $ */
/* $Id: os.c,v 1.9 2001/10/12 05:40:41 marka Exp $ */
#include <config.h>
#include <stdarg.h>
......@@ -171,6 +171,8 @@ ns_os_writepidfile(const char *filename) {
cleanup_pidfile();
if (strcmp(filename, "none") == 0)
return;
len = strlen(filename);
pidfile = malloc(len + 1);
if (pidfile == NULL)
......
......@@ -2,7 +2,7 @@
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN"
"http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd">
<!-- File: $Id: Bv9ARM-book.xml,v 1.164 2001/10/08 07:46:03 marka Exp $ -->
<!-- File: $Id: Bv9ARM-book.xml,v 1.165 2001/10/12 05:40:37 marka Exp $ -->
<book>
<title>BIND 9 Administrator Reference Manual</title>
......@@ -2913,7 +2913,9 @@ the default is <filename>named.memstats</filename>.</para>
<listitem><para>The pathname of the file the server writes its process ID
in. If not specified, the default is <filename>/var/run/named.pid</filename>.
The pid-file is used by programs that want to send signals to the running
nameserver.</para>
nameserver. If the the <command>pid-file</command> is the keyword
<userinput>"none"</userinput> then no file will be written and any
existing one will be removed.</para>
</listitem></varlistentry>
<varlistentry><term><command>statistics-file</command></term>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment