aboutsummaryrefslogtreecommitdiff
path: root/util.cpp
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-02-23 22:01:39 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-02-23 22:01:39 +0000
commitcb420a1dfc23d3c11c5281ed8f7ae003c2f61594 (patch)
tree60f2b388dc78f0e25ce873a8ea4487393711b18e /util.cpp
parent0184604aaf21f8279df9ecbee7be4fbf0bbf99c1 (diff)
run as daemon without GUI,v0.2.6
hooked wxApp::Initialize to ignore gtk-init-check failure if no GUI, fork to daemonize, rpc getinfo, getconnectioncount, getbalance, getgenerate, setgenerate, -- version 0.2.6 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@70 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'util.cpp')
-rw-r--r--util.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/util.cpp b/util.cpp
index 40f7af343b..6ea735d1e2 100644
--- a/util.cpp
+++ b/util.cpp
@@ -13,6 +13,7 @@ bool fPrintToDebugger = false;
char pszSetDataDir[MAX_PATH] = "";
bool fShutdown = false;
bool fDaemon = false;
+bool fCommandLine = false;
@@ -500,7 +501,8 @@ void PrintException(std::exception* pex, const char* pszThread)
char pszMessage[1000];
FormatException(pszMessage, pex, pszThread);
printf("\n\n************************\n%s\n", pszMessage);
- if (wxTheApp)
+ fprintf(stderr, "\n\n************************\n%s\n", pszMessage);
+ if (wxTheApp && !fDaemon)
wxMessageBox(pszMessage, "Error", wxOK | wxICON_ERROR);
throw;
//DebugBreak();