News for hackers. Stuff that matters.
Re:Debian developer prompted to revisit FreeBSD after 20 years by ziahamza on Tuesday February 17, 2015 @12:24PM (#9063551)
I dont think kqueue fulfils the need of listening on file system events. Mac OSX has FS Events, to fill the need of inotify. Kqueue is more of a replacement for Epoll and works consistently across all file descriptors, not necessary for listening events on file paths.
Re:Debian developer prompted to revisit FreeBSD after 20 years by leimy2k on Tuesday February 17, 2015 @12:32PM (#9063609)
Please google the kqueue man page. There's many filters for kqueues. Specifically look at the VNODE filter.

Here's the link: https://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2

You want to watch a directory? Open it and register it with the VNODE filter. You can watch a file for delete, rename, extend, write etc. OpenBSD can even watch TRUNCATE events.

You can use a kqueue filter for userspace events between threads, timers, signals, process states, asynchronous io, writability, and readability of fds.

It's quite generic and fairly evenly supported across BSD derivatives including Mac OS X.

Re:Debian developer prompted to revisit FreeBSD after 20 years by derpsss on Tuesday February 17, 2015 @12:35PM (#9063638)
Re:Debian developer prompted to revisit FreeBSD after 20 years by durin42 on Tuesday February 17, 2015 @03:56PM (#9064907)
I'm almost 100% certain FSEvents uses kqueue internally. You can definitely use kqueue for the same things you'd need inotify for on Linux.