mirror of
https://review.haiku-os.org/haiku
synced 2025-01-22 06:16:03 +01:00
d49f1b87a0
and free_*_cookie() hooks of the underlying FS were always called together when the reference count of the FD dropped to zero. When blocking operations (reading/writing) on the FD were still in progress this would never happen, though. Now we additionally maintain an open count and call the close_*() hook when it drops to zero. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11882 a95241bf-73f2-0310-859d-f6bbb57e9c96