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))
|
||||
{
|
||||
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 New Issue