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))
|
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 a new issue