mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
lxc: remove unneeded labels
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
f7da2c19a9
commit
dbc39858bd
@ -380,18 +380,15 @@ static int lxcContainerSetupFDs(int *ttyfd,
|
||||
*/
|
||||
int lxcContainerSendContinue(int control)
|
||||
{
|
||||
int rc = -1;
|
||||
lxc_message_t msg = LXC_CONTINUE_MSG;
|
||||
int writeCount = 0;
|
||||
|
||||
VIR_DEBUG("Send continue on fd %d", control);
|
||||
writeCount = safewrite(control, &msg, sizeof(msg));
|
||||
if (writeCount != sizeof(msg))
|
||||
goto error_out;
|
||||
return -1;
|
||||
|
||||
rc = 0;
|
||||
error_out:
|
||||
return rc;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1115,7 +1115,7 @@ static void virLXCControllerConsoleUpdateWatch(virLXCControllerConsolePtr consol
|
||||
virReportSystemError(errno, "%s",
|
||||
_("Unable to add epoll fd"));
|
||||
virNetDaemonQuit(console->daemon);
|
||||
goto cleanup;
|
||||
return;
|
||||
}
|
||||
console->hostEpoll = events;
|
||||
VIR_DEBUG("newHostEvents=%x oldHostEvents=%x", events, console->hostEpoll);
|
||||
@ -1127,7 +1127,7 @@ static void virLXCControllerConsoleUpdateWatch(virLXCControllerConsolePtr consol
|
||||
_("Unable to remove epoll fd"));
|
||||
VIR_DEBUG(":fail");
|
||||
virNetDaemonQuit(console->daemon);
|
||||
goto cleanup;
|
||||
return;
|
||||
}
|
||||
console->hostEpoll = 0;
|
||||
}
|
||||
@ -1153,7 +1153,7 @@ static void virLXCControllerConsoleUpdateWatch(virLXCControllerConsolePtr consol
|
||||
_("Unable to add epoll fd"));
|
||||
VIR_DEBUG(":fail");
|
||||
virNetDaemonQuit(console->daemon);
|
||||
goto cleanup;
|
||||
return;
|
||||
}
|
||||
console->contEpoll = events;
|
||||
VIR_DEBUG("newHostEvents=%x oldHostEvents=%x", events, console->contEpoll);
|
||||
@ -1165,12 +1165,10 @@ static void virLXCControllerConsoleUpdateWatch(virLXCControllerConsolePtr consol
|
||||
_("Unable to remove epoll fd"));
|
||||
VIR_DEBUG(":fail");
|
||||
virNetDaemonQuit(console->daemon);
|
||||
goto cleanup;
|
||||
return;
|
||||
}
|
||||
console->contEpoll = 0;
|
||||
}
|
||||
cleanup:
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user