@ -1,5 +1,5 @@
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-201 8 The Bitcoin Core developers
// Copyright (c) 2009-201 9 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
@ -77,7 +77,7 @@ static bool AppInit(int argc, char* argv[])
// Process help and version before taking care about datadir
// Process help and version before taking care about datadir
if ( HelpRequested ( gArgs ) | | gArgs . IsArgSet ( " -version " ) ) {
if ( HelpRequested ( gArgs ) | | gArgs . IsArgSet ( " -version " ) ) {
std : : string strUsage = PACKAGE_NAME " Daemon version " + FormatFullVersion ( ) + " \n " ;
std : : string strUsage = PACKAGE_NAME " version " + FormatFullVersion ( ) + " \n " ;
if ( gArgs . IsArgSet ( " -version " ) )
if ( gArgs . IsArgSet ( " -version " ) )
{
{
@ -85,7 +85,7 @@ static bool AppInit(int argc, char* argv[])
}
}
else
else
{
{
strUsage + = " \n Usage: bitcoind [options] Start " PACKAGE_NAME " Daemon \n " ;
strUsage + = " \n Usage: bitcoind [options] Start " PACKAGE_NAME " \n " ;
strUsage + = " \n " + gArgs . GetHelpMessage ( ) ;
strUsage + = " \n " + gArgs . GetHelpMessage ( ) ;
}
}
@ -143,7 +143,7 @@ static bool AppInit(int argc, char* argv[])
# pragma GCC diagnostic push
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
# endif
# endif
tfm : : format ( std : : cout , PACKAGE_NAME " daemon starting\n " ) ;
tfm : : format ( std : : cout , PACKAGE_NAME " starting\n " ) ;
// Daemonize
// Daemonize
if ( daemon ( 1 , 0 ) ) { // don't chdir (1), do close FDs (0)
if ( daemon ( 1 , 0 ) ) { // don't chdir (1), do close FDs (0)