mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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:
parent
0e2219daa9
commit
5106937c7b
1 changed files with 1 additions and 0 deletions
1
fdm.c
1
fdm.c
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue