2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

log: don't fail if a log descriptor is reopened

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2012-04-06 16:45:00 +04:00
committed by Pavel Emelyanov
parent c4458cb50d
commit dcc37a09e0

3
log.c
View File

@@ -45,6 +45,9 @@ int log_init(const char *output)
return -1;
}
if (sfd == current_logfd)
close(sfd);
if (reopen_fd_as(sfd, new_logfd) < 0)
goto err;
} else {