aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-12-13 22:17:07 +0200
committerRiccardo Spagni <ric@spagni.net>2015-12-13 22:17:11 +0200
commit3a4db6346b2b1b4c3e3733d833f338d104f7da95 (patch)
treeb3da6b45609baf4536aa89dd57322e1d3d36e80e
parentMerge pull request #532 (diff)
parentposix_daemonizer: only create the main daemon object in the last child (diff)
downloadmonero-3a4db6346b2b1b4c3e3733d833f338d104f7da95.tar.xz
Merge pull request #533
7f77b23 posix_daemonizer: only create the main daemon object in the last child (moneromooo-monero)
-rw-r--r--src/daemonizer/posix_daemonizer.inl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemonizer/posix_daemonizer.inl b/src/daemonizer/posix_daemonizer.inl
index c07b96c55..5675fd72d 100644
--- a/src/daemonizer/posix_daemonizer.inl
+++ b/src/daemonizer/posix_daemonizer.inl
@@ -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