From 577272cf7935770fa2ea817e656a572cdcd94ecc Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 9 Jan 2008 02:35:10 +0000 Subject: [PATCH] 2288. [port] win32: mark service as running when we have finished loading. [RT #17441] --- CHANGES | 3 +++ bin/named/win32/os.c | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index e58f52e984..4608f4d21e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2288. [port] win32: mark service as running when we have finished + loading. [RT #17441] + 2287. [bug] Use 'volatile' if the compiler supports it. [RT #17413] 2286. [func] Allow a TCP connection to be used as a weak diff --git a/bin/named/win32/os.c b/bin/named/win32/os.c index e6ea7d1405..019c15ff5d 100644 --- a/bin/named/win32/os.c +++ b/bin/named/win32/os.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: os.c,v 1.25 2007/06/19 23:46:59 tbox Exp $ */ +/* $Id: os.c,v 1.26 2008/01/09 02:35:10 marka Exp $ */ #include #include @@ -103,7 +103,16 @@ void ns_os_init(const char *progname) { ns_paths_init(); setup_syslog(progname); - ntservice_init(); + /* + * XXXMPA. We may need to split ntservice_init() in two and + * just mark as running in ns_os_started(). If we do that + * this is where the first part of ntservice_init() should be + * called from. + * + * XXX970 Remove comment if no problems by 9.7.0. + * + * ntservice_init(); + */ version_check(progname); } @@ -285,4 +294,5 @@ ns_os_tzset(void) { void ns_os_started(void) { + ntservice_init(); }