mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
uml_driver: correct logic error in umlMonitorCommand
* src/uml/uml_driver.c (umlMonitorCommand): Correct flaw that would cause unconditional "incomplete reply ..." failure, since "nbytes" was always 0 or 1.
This commit is contained in:
parent
c1fd7d7b3e
commit
60ef6d6322
@ -730,7 +730,7 @@ static int umlMonitorCommand(const struct uml_driver *driver,
|
||||
ssize_t nbytes;
|
||||
addrlen = sizeof(addr);
|
||||
nbytes = recvfrom(priv->monitor, &res, sizeof res, 0,
|
||||
(struct sockaddr *)&addr, &addrlen) < 0;
|
||||
(struct sockaddr *)&addr, &addrlen);
|
||||
if (nbytes < 0) {
|
||||
if (errno == EAGAIN || errno == EINTR)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user