diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-12-13 22:17:07 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-12-13 22:17:11 +0200 |
commit | 3a4db6346b2b1b4c3e3733d833f338d104f7da95 (patch) | |
tree | b3da6b45609baf4536aa89dd57322e1d3d36e80e /src | |
parent | Merge pull request #532 (diff) | |
parent | posix_daemonizer: only create the main daemon object in the last child (diff) | |
download | monero-3a4db6346b2b1b4c3e3733d833f338d104f7da95.tar.xz |
Merge pull request #533
7f77b23 posix_daemonizer: only create the main daemon object in the last child (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r-- | src/daemonizer/posix_daemonizer.inl | 2 |
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 |