Commit dcc37a09 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

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

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent c4458cb5
......@@ -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 {
......
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