diff options
| author | tcatm <[email protected]> | 2011-04-08 23:59:32 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2011-04-08 23:59:32 -0400 |
| commit | d12ea887bcf1eab4b029007c4bf5821992c0c6b1 (patch) | |
| tree | b12475510f1380ba09132828723852a78137963a /ui.cpp | |
| parent | rfc1123Time: increase buffer size for time string (diff) | |
| download | discoin-d12ea887bcf1eab4b029007c4bf5821992c0c6b1.tar.xz discoin-d12ea887bcf1eab4b029007c4bf5821992c0c6b1.zip | |
disable -daemon on windows; bitcoind forks only with -daemon set
[added setsid() call to ui.cpp, to regain consistency with init.cpp -jgarzik]
Diffstat (limited to 'ui.cpp')
| -rw-r--r-- | ui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |