diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-08-07 06:35:54 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-08-07 06:35:54 -0700 |
| commit | 80fc5849233c63b60c91e3fc1bf106b810e45c36 (patch) | |
| tree | a945eb80c628923fef41b1e06c37d07c4e990ff8 /main.cpp | |
| parent | b7389995f4003a2c1d1bb6b6ce9171be08565f6d (diff) | |
| download | infinitytier-80fc5849233c63b60c91e3fc1bf106b810e45c36.tar.gz infinitytier-80fc5849233c63b60c91e3fc1bf106b810e45c36.zip | |
Fix for GitHub issue #97
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -729,12 +729,16 @@ int main(int argc,char **argv) // like OSX's launchd. if (upgPath) { Utils::rm((std::string(homeDir)+"/zerotier-one.pid").c_str()); + std::string updateLogPath(homeDir); + updateLogPath.append("/autoupdate.log"); + Utils::rm(updateLogPath.c_str()); + Utils::redirectUnixOutputs(updateLogPath.c_str(),(const char *)0); ::execl(upgPath,upgPath,(char *)0); } exitCode = 3; fprintf(stderr,"%s: abnormal termination: unable to execute update at %s\n",argv[0],(upgPath) ? upgPath : "(unknown path)"); } break; -#endif +#endif // __WINDOWS__ / __UNIX_LIKE__ case Node::NODE_UNRECOVERABLE_ERROR: { exitCode = 3; const char *termReason = node->reasonForTermination(); |
