6 ms·
Example: Recently built a small service that responds to requests and walks various files looking for data. The service can be asked to unload (close) the file
by chrsm 11y ago
Example: Recently built a small service that responds to requests and walks various files looking for data.
The service can be asked to unload (close) the file, but it's hard to say whether it's in-use at the time without some kind of reference count to current requests using the file.
- nly 11y agoThat's kinda what dup() is for. Reference counting happens in the kernel.