diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-12-15 14:06:09 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-12-15 14:06:09 +0000 |
| commit | 5106937c7b24933bb1f906f672606147c4bac1cb (patch) | |
| tree | e55287ef21b39486358b3aa532bd67aaabfafb41 | |
| parent | PKGBUILD/meson: bump version to 1.0.0 (diff) | |
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.
| -rw-r--r-- | fdm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |
