aboutsummaryrefslogtreecommitdiff
path: root/ui.cpp
diff options
context:
space:
mode:
authortcatm <tcatm@gawab.com>2011-04-08 23:59:32 -0400
committerJeff Garzik <jgarzik@pobox.com>2011-04-08 23:59:32 -0400
commitd12ea887bcf1eab4b029007c4bf5821992c0c6b1 (patch)
treeb12475510f1380ba09132828723852a78137963a /ui.cpp
parentd98beea894c82063362011bb7f44a09995fd6047 (diff)
downloadbitcoin-d12ea887bcf1eab4b029007c4bf5821992c0c6b1.tar.xz
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.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui.cpp b/ui.cpp
index f4c0c4d749..9ae19e8a6f 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -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;