From 5b97bb247ed16cd3466b55db10057c722e67e726 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 6 Feb 2014 23:12:12 -0800 Subject: More Windows service work... it builds! Now to do a new installer and test. Also fix a Windows compile warning in Switch.cpp. --- main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 168924d2..75562747 100644 --- a/main.cpp +++ b/main.cpp @@ -628,6 +628,7 @@ int main(int argc,char **argv) if (!winRunFromCommandLine) { ZeroTierOneService zt1Service; if (CServiceBase::Run(zt1Service) == TRUE) { + // Normal termination of service process return 0; } else { fprintf(stderr,"%s: unable to start service (try -h for help)"ZT_EOL_S,argv[0]); @@ -637,7 +638,6 @@ int main(int argc,char **argv) #endif { int exitCode = 0; - try { node = new Node(homeDir,port,controlPort); switch(node->run()) { @@ -669,11 +669,9 @@ int main(int argc,char **argv) fprintf(stderr,"%s: unexpected exception!"ZT_EOL_S,argv[0]); exitCode = 3; } - #ifdef __UNIX_LIKE__ Utils::rm((std::string(homeDir)+"/zerotier-one.pid").c_str()); #endif - return exitCode; } } -- cgit v1.2.3