8000 fixed startup · ezhangle/arangodb@3ac535b · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ac535b

Browse files
committed
fixed startup
1 parent 3057cf7 commit 3ac535b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

arangod/RestServer/arangod.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ int main (int argc, char* argv[]) {
9999

100100
signal(SIGSEGV, abortHandler);
101101

102-
#if _WIN32
102+
#ifdef _WIN32
103103
bool const startAsService = TRI_ParseMoreArgs(argc, argv);
104104
#else
105105
bool const startAsService = false;

lib/Rest/AnyServer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ static int ForkProcess (string const& workingDirectory, string& current) {
236236
////////////////////////////////////////////////////////////////////////////////
237237

238238
AnyServer::AnyServer ()
239-
: _mode(ServerMode::MODE_STANDALONE),
239+
: _daemonMode(false),
240+
_mode(ServerMode::MODE_STANDALONE),
240241
_supervisorMode(false),
241242
_pidFile(""),
242243
_workingDirectory(""),

0 commit comments

Comments
 (0)
0