mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 19:33:28 +01:00
Merge pull request #533
7f77b23
posix_daemonizer: only create the main daemon object in the last child (moneromooo-monero)
This commit is contained in:
commit
3a4db6346b
@ -74,9 +74,9 @@ namespace daemonizer
|
|||||||
{
|
{
|
||||||
if (command_line::has_arg(vm, arg_detach))
|
if (command_line::has_arg(vm, arg_detach))
|
||||||
{
|
{
|
||||||
auto daemon = executor.create_daemon(vm);
|
|
||||||
tools::success_msg_writer() << "Forking to background...";
|
tools::success_msg_writer() << "Forking to background...";
|
||||||
posix::fork();
|
posix::fork();
|
||||||
|
auto daemon = executor.create_daemon(vm);
|
||||||
return daemon.run();
|
return daemon.run();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user