It is possible that an invalid fd is passed to read or write. This can
happen for instance if the endpoint of the transport (ex: relayd) dies
out while actively trying to send data. It is OK to let an invalid fd
where the syscall will return the right value along with errno being
populated with the corresponding code.
Acked-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
size_t i = 0;
ssize_t ret;
- assert(fd >= 0);
assert(buf);
do {
size_t i = 0;
ssize_t ret;
- assert(fd >= 0);
assert(buf);
do {