Skip to content

Commit 01bb3af

Browse files
committed
Merge #21447: Always add -daemonwait to known command line arguments
4d008f9 Always add -daemonwait to known command line arguments (Hennadii Stepanov) Pull request description: This is a follow up of #21007. When `AC_CHECK_DECLS([fork])` fails: - on master (8e65320): ``` $ src/bitcoind -daemonwait Error: Error parsing command line arguments: Invalid parameter -daemonwait ``` - with this PR: ``` $ src/bitcoind -daemonwait Error: -daemon is not supported on this operating system ``` ACKs for top commit: laanwj: Code review ACK 4d008f9 Tree-SHA512: 7fcb5e9d76958adcf57e04fa74bd2a98d62459d81a3c57a97bd74c346cbf47c53e560a15455fb024e912c3b44e8487a83499e993b282871ba069953e665d88a9
2 parents 1b6c463 + 4d008f9 commit 01bb3af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/init.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ void SetupServerArgs(NodeContext& node)
585585
argsman.AddArg("-daemonwait", strprintf("Wait for initialization to be finished before exiting. This implies -daemon (default: %d)", DEFAULT_DAEMONWAIT), ArgsManager::ALLOW_BOOL, OptionsCategory::OPTIONS);
586586
#else
587587
hidden_args.emplace_back("-daemon");
588+
hidden_args.emplace_back("-daemonwait");
588589
#endif
589590

590591
// Add the hidden options

0 commit comments

Comments
 (0)