Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoind.cpp
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Lines | |||||
#else | #else | ||||
fprintf( | fprintf( | ||||
stderr, | stderr, | ||||
"Error: -daemon is not supported on this operating system\n"); | "Error: -daemon is not supported on this operating system\n"); | ||||
return false; | return false; | ||||
#endif // HAVE_DECL_DAEMON | #endif // HAVE_DECL_DAEMON | ||||
} | } | ||||
// Lock data directory after daemonization | |||||
if (!AppInitLockDataDirectory()) { | |||||
// If locking the data directory failed, exit immediately | |||||
exit(EXIT_FAILURE); | |||||
} | |||||
fRet = AppInitMain(config, httpRPCRequestProcessor, threadGroup, | fRet = AppInitMain(config, httpRPCRequestProcessor, threadGroup, | ||||
scheduler); | scheduler); | ||||
} catch (const std::exception &e) { | } catch (const std::exception &e) { | ||||
PrintExceptionContinue(&e, "AppInit()"); | PrintExceptionContinue(&e, "AppInit()"); | ||||
} catch (...) { | } catch (...) { | ||||
PrintExceptionContinue(nullptr, "AppInit()"); | PrintExceptionContinue(nullptr, "AppInit()"); | ||||
} | } | ||||
Show All 22 Lines |