fdm: close fd even if we didn't find it in our list

This behavior is debatable, but helps in error handling where we're
removing a bunch of descriptors where not all of them have been added
to the FDM yet.
This commit is contained in:
Daniel Eklöf 2019-12-15 15:06:09 +01:00
parent 0e2219daa9
commit 5106937c7b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

1
fdm.c
View file

@ -130,6 +130,7 @@ fdm_del_internal(struct fdm *fdm, int fd, bool close_fd)
}
LOG_ERR("no such FD: %d", fd);
close(fd);
return false;
}