mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 00:29:58 -05:00
Fix for windows crash at start (after install for example)
git-svn-id: file:///svn/unbound/trunk@1713 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
fa842c30de
commit
82f83d8d06
2 changed files with 13 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
13 July 2009: Wouter
|
||||||
|
- Fix for crash at start on windows.
|
||||||
|
|
||||||
9 July 2009: Wouter
|
9 July 2009: Wouter
|
||||||
- tag for release 1.3.1.
|
- tag for release 1.3.1.
|
||||||
- trunk has version 1.3.2.
|
- trunk has version 1.3.2.
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@
|
||||||
#include "winrc/w_inst.h"
|
#include "winrc/w_inst.h"
|
||||||
#include "daemon/daemon.h"
|
#include "daemon/daemon.h"
|
||||||
#include "daemon/worker.h"
|
#include "daemon/worker.h"
|
||||||
|
#include "daemon/remote.h"
|
||||||
#include "util/config_file.h"
|
#include "util/config_file.h"
|
||||||
#include "util/netevent.h"
|
#include "util/netevent.h"
|
||||||
#include "util/winsock_event.h"
|
#include "util/winsock_event.h"
|
||||||
|
|
@ -283,7 +284,15 @@ service_init(int r, struct daemon** d, struct config_file** c)
|
||||||
if(!r) report_status(SERVICE_START_PENDING, NO_ERROR, 2400);
|
if(!r) report_status(SERVICE_START_PENDING, NO_ERROR, 2400);
|
||||||
verbose(VERB_QUERY, "winservice - apply cfg");
|
verbose(VERB_QUERY, "winservice - apply cfg");
|
||||||
daemon_apply_cfg(daemon, cfg);
|
daemon_apply_cfg(daemon, cfg);
|
||||||
|
|
||||||
|
if(!r) report_status(SERVICE_START_PENDING, NO_ERROR, 2300);
|
||||||
|
if(!(daemon->rc = daemon_remote_create(cfg))) {
|
||||||
|
log_err("could not set up remote-control");
|
||||||
|
daemon_delete(daemon);
|
||||||
|
config_delete(cfg);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* open ports */
|
/* open ports */
|
||||||
/* keep reporting that we are busy starting */
|
/* keep reporting that we are busy starting */
|
||||||
if(!r) report_status(SERVICE_START_PENDING, NO_ERROR, 2200);
|
if(!r) report_status(SERVICE_START_PENDING, NO_ERROR, 2200);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue