vmm: serial_manager: Iterate again on EINTR

If the epoll_wait() call returns EINTR, this only means a signal has
been delivered before any of the file descriptors registered triggered
an event or before the end of the timeout (if timeout isn't -1). For
that reason, we should simply try to listen on the epoll loop again.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2022-08-25 10:21:59 +02:00
parent 2306291720
commit 63462fd8ab

View File

@ -239,7 +239,7 @@ impl SerialManager {
// returns an error of type EINTR, but this should not
// be considered as a regular error. Instead it is more
// appropriate to retry, by calling into epoll_wait().
0
continue;
} else {
return Err(Error::Epoll(e));
}