diff options
author | tcatm <tcatm@gawab.com> | 2011-04-08 23:59:32 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2011-04-08 23:59:32 -0400 |
commit | d12ea887bcf1eab4b029007c4bf5821992c0c6b1 (patch) | |
tree | b12475510f1380ba09132828723852a78137963a /ui.cpp | |
parent | d98beea894c82063362011bb7f44a09995fd6047 (diff) |
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; |