mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-27 03:56:05 +00:00
cr_service(): close fd on error
... and don't return -1.
This is a missing part from commit 3477223.
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
6bfc566d0d
commit
b744883e42
1 changed files with 1 additions and 1 deletions
|
|
@ -400,7 +400,7 @@ int cr_service(bool daemon_mode)
|
|||
if (opts.pidfile) {
|
||||
if (write_pidfile(getpid()) == -1) {
|
||||
pr_perror("Can't write pidfile");
|
||||
return -1;
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue