On Tue Apr 15 07:50:06 2025 +0000, Ralf Habacker wrote:
Here the `unix_fd` is saved for closing the file, which is -1 in the case of sockets.
`unix_fd` is used in `inode_close_pending()`, `inode_destroy()`, `inode_add_closed_fd()`, `fd_destroy()` and `unmount_fd()` to close the file. In any of the mentioned location the call to close() is guarded with `if (fd->unix_fd != -1)`, so these function are already save the socket case.