4 ms·
So soft updates and kqueue? :)
by twic 3y ago
So soft updates and kqueue? :)
- josephg 3y agoI'm not sure you mean by soft updates but - kqueue is really just a messaging queue. I want a data subscription system, so I can get a kernel object and get a stream of updates which can be applied to the snapshot in sequence. kqueue is very limited in terms of what you can subscribe to, and things like filesystem watching usually requires subsequent filesystem calls to see whats actually changed. And that in turn introduces race conditions if the data is changed again before your fs syscalls make it through. I think there are cleaner APIs out there. I'd like to see if I can find one.