attempt to prevent future endless loops in io_wait half-closed fd

cleanup
This commit is contained in:
leitner 2021-02-16 15:50:38 +00:00
parent e2673d3782
commit 75fe9a620e
2 changed files with 2 additions and 6 deletions

View File

@ -51,9 +51,7 @@ int64 io_canread() {
if (e->closed) {
/* The fd was previously closed, but there were still open events on it.
* To prevent race conditions, we did not actually close the fd
* but only marked it as closed, so we can skip this event here
* and really closed it now. */
io_close(r);
* but only marked it as closed, so we can skip this event here */
continue;
}

View File

@ -46,9 +46,7 @@ int64 io_canwrite() {
if (e->closed) {
/* The fd was previously closed, but there were still open events on it.
* To prevent race conditions, we did not actually close the fd
* but only marked it as closed, so we can skip this event here
* and really closed it now. */
io_close(r);
* but only marked it as closed, so we can skip this event here */
continue;
}