mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 00:07:38 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -74,9 +74,9 @@ namespace daemonizer
|
|||
{
|
||||
if (command_line::has_arg(vm, arg_detach))
|
||||
{
|
||||
auto daemon = executor.create_daemon(vm);
|
||||
tools::success_msg_writer() << "Forking to background...";
|
||||
posix::fork();
|
||||
auto daemon = executor.create_daemon(vm);
|
||||
return daemon.run();
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue