logoalt Hacker News

ArielTMyesterday at 12:43 PM1 replyview on HN

kqueue/FSEvents is tempting here, but Darwin drops same-process notifications. If you've got a publisher and listener in the same process the listener just never fires. Nasty thing to chase. stat polling looks gross but it's the only thing that actually works everywhere.

What happens on WAL checkpoint? When the file shrinks back, does that trigger a wakeup, or does the poller filter size drops?


Replies

russellthehippoyesterday at 8:39 PM

Actually need to test this. Will report back