don't allow -daemon in bitcoin-qt (changes only #defines)
This commit is contained in:
parent
d3896211d2
commit
39231e9105
1 changed files with 3 additions and 3 deletions
|
@ -213,7 +213,7 @@ bool AppInit2(int argc, char* argv[])
|
||||||
#ifdef GUI
|
#ifdef GUI
|
||||||
" -server \t\t " + _("Accept command line and JSON-RPC commands") + "\n" +
|
" -server \t\t " + _("Accept command line and JSON-RPC commands") + "\n" +
|
||||||
#endif
|
#endif
|
||||||
#ifndef WIN32
|
#if !defined(WIN32) && !defined(GUI)
|
||||||
" -daemon \t\t " + _("Run in the background as a daemon and accept commands") + "\n" +
|
" -daemon \t\t " + _("Run in the background as a daemon and accept commands") + "\n" +
|
||||||
#endif
|
#endif
|
||||||
" -testnet \t\t " + _("Use the test network") + "\n" +
|
" -testnet \t\t " + _("Use the test network") + "\n" +
|
||||||
|
@ -253,7 +253,7 @@ bool AppInit2(int argc, char* argv[])
|
||||||
fTestNet = GetBoolArg("-testnet");
|
fTestNet = GetBoolArg("-testnet");
|
||||||
fDebug = GetBoolArg("-debug");
|
fDebug = GetBoolArg("-debug");
|
||||||
|
|
||||||
#ifndef WIN32
|
#if !defined(WIN32) && !defined(GUI)
|
||||||
fDaemon = GetBoolArg("-daemon");
|
fDaemon = GetBoolArg("-daemon");
|
||||||
#else
|
#else
|
||||||
fDaemon = false;
|
fDaemon = false;
|
||||||
|
@ -284,7 +284,7 @@ bool AppInit2(int argc, char* argv[])
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef WIN32
|
#if !defined(WIN32) && !defined(GUI)
|
||||||
if (fDaemon)
|
if (fDaemon)
|
||||||
{
|
{
|
||||||
// Daemonize
|
// Daemonize
|
||||||
|
|
Loading…
Add table
Reference in a new issue