Commit b1a197f0 authored by Ruslan Kuprieiev's avatar Ruslan Kuprieiev Committed by Pavel Emelyanov

page-server/service: do not chdir / when going daemon

Signed-off-by: 's avatarRuslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 482b3066
......@@ -367,7 +367,7 @@ int cr_service(bool daemon_mode)
}
if (daemon_mode) {
if (daemon(0, 0) == -1) {
if (daemon(1, 0) == -1) {
pr_perror("Can't run service server in the background");
goto err;
}
......
......@@ -271,7 +271,7 @@ int cr_page_server(bool daemon_mode)
}
if (daemon_mode)
if(daemon(0, 0) == -1){
if (daemon(1, 0) == -1) {
pr_perror("Can't run in the background");
return -errno;
}
......
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