[CRIU] [PATCH 2/3] restore: reserve the service descriptor for a control tty

Pavel Emelyanov xemul at parallels.com
Mon Mar 18 15:09:20 EDT 2013


On 03/18/2013 09:40 PM, Andrey Vagin wrote:
> I'm really lucky.
> 
> prepare_ctl_tty:
> 	e->fd           = reserve_service_fd(CTL_TTY_OFF); // -1
> 
> send_fd_to_self:
> if (dup2(fd, dfd) != dfd) { // -1 == -1
> 
> tty_restore_ctl_terminal:
> 	if (!is_service_fd(fd, CTL_TTY_OFF))
> 		return fd == get_service_fd(type); // -1 = -1
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>

Applied, with fixed comment.


More information about the CRIU mailing list