Re:Libdill: Structured concurrency in C
by rumcajz on Saturday June 04, 2016 @07:24AM
(#11835928)
Here's the use case that drives the design of fdclean: Imagine a third party library makes a callback to your code and hands you a file descriptor. You can use it temporarily, but you have no idea what will happen to it after you return from the callback function. Will it live on? Will it be closed? The only way to deal with that is to purge any cached info about the fd before returning and pretend that you never had anything to do with that file descriptor.
[ Parent
| on HN ]
There are no comments on this comment yet.