[CRIU] [PATCH 1/2] service: don't change dir to / when going deamon
Ruslan Kuprieiev
kupruser at gmail.com
Mon Oct 21 03:24:15 PDT 2013
Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
cr-service.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cr-service.c b/cr-service.c
index 1c14466..64aa8ef 100644
--- a/cr-service.c
+++ b/cr-service.c
@@ -305,7 +305,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;
}
--
1.8.1.2
More information about the CRIU
mailing list