Commit ebb4a1bf authored by Pavel Emelyanov's avatar Pavel Emelyanov

service: Go to daemon with detached terminal and cwd

Logs are put into dedicated logfd, cwd is not used as well.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent c9d31458
...@@ -303,7 +303,7 @@ int cr_service(bool daemon_mode) ...@@ -303,7 +303,7 @@ int cr_service(bool daemon_mode)
} }
if (daemon_mode) { if (daemon_mode) {
if (daemon(1, 1) == -1) { if (daemon(0, 0) == -1) {
pr_perror("Can't run service server in the background"); pr_perror("Can't run service server in the background");
goto err; goto err;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment