diff options
| author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2014-02-06 23:12:12 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2014-02-06 23:12:12 -0800 |
| commit | 5b97bb247ed16cd3466b55db10057c722e67e726 (patch) | |
| tree | 0627c6919e575df8deff7b518e372622c4a44333 /main.cpp | |
| parent | 8a7486577afb259c19b82e4e73cb8b508cd2f162 (diff) | |
| download | infinitytier-5b97bb247ed16cd3466b55db10057c722e67e726.tar.gz infinitytier-5b97bb247ed16cd3466b55db10057c722e67e726.zip | |
More Windows service work... it builds! Now to do a new installer and test. Also fix a Windows compile warning in Switch.cpp.
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; } } |
