mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-21 15:50:07 +01:00
don't allow -daemon in bitcoin-qt (changes only #defines)
This commit is contained in:
committed by
Luke Dashjr
parent
6928794f56
commit
25be0597ca
@@ -209,7 +209,7 @@ bool AppInit2(int argc, char* argv[])
|
||||
#ifdef GUI
|
||||
" -server \t\t " + _("Accept command line and JSON-RPC commands\n") +
|
||||
#endif
|
||||
#ifndef WIN32
|
||||
#if !defined(WIN32) && !defined(GUI)
|
||||
" -daemon \t\t " + _("Run in the background as a daemon and accept commands\n") +
|
||||
#endif
|
||||
" -testnet \t\t " + _("Use the test network\n") +
|
||||
@@ -248,7 +248,7 @@ bool AppInit2(int argc, char* argv[])
|
||||
fTestNet = GetBoolArg("-testnet");
|
||||
fDebug = GetBoolArg("-debug");
|
||||
|
||||
#ifndef WIN32
|
||||
#if !defined(WIN32) && !defined(GUI)
|
||||
fDaemon = GetBoolArg("-daemon");
|
||||
#else
|
||||
fDaemon = false;
|
||||
@@ -279,7 +279,7 @@ bool AppInit2(int argc, char* argv[])
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
#if !defined(WIN32) && !defined(GUI)
|
||||
if (fDaemon)
|
||||
{
|
||||
// Daemonize
|
||||
|
||||
Reference in New Issue
Block a user