disable -daemon on windows; bitcoind forks only with -daemon set

[added setsid() call to ui.cpp, to regain consistency with init.cpp -jgarzik]
This commit is contained in:
tcatm
2011-04-08 23:59:32 -04:00
committed by Jeff Garzik
parent d98beea894
commit d12ea887bc
2 changed files with 20 additions and 8 deletions

4
ui.cpp
View File

@@ -2808,6 +2808,10 @@ bool CMyApp::Initialize(int& argc, wxChar** argv)
}
if (pid > 0)
pthread_exit((void*)0);
pid_t sid = setsid();
if (sid < 0)
fprintf(stderr, "Error: setsid() returned %d errno %d\n", sid, errno);
}
return true;