photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

274
active users

#inotify

0 posts0 participants0 posts today
Replied in thread

@pertho The only little drawback compared to epoll is the lack of atomic signal mask setting, so you need a bit more code and a thoughtful structure to handle signals in the same loop. Apart from that, indeed much better than #epoll.

Unfortunately, it's not beter than inotify (for a completely different purpose, #file #monitoring ... kqueue covers them all). With #inotify, you can for example set a #watch by path, while #kqueue requires opened file descriptors. 😞

A small useful tool, based on inotify as a systemd service that checks directories for changes and outputs messages.

  • Real time monitoring: Observe designated paths for various file system activities, such as opening, closing, creating, deleting, reading, and writing files.
  • Notifications: File warden utilizes libnotify to deliver desktop alerts whenever a monitoring path experiences a files system event.
  • Logging: Records all file system events to Journal alongside the desktop notifications

#^https://github.com/AntoninoAdornetto/file-warden

#linux #systemd #inotify
GitHubGitHub - AntoninoAdornetto/file-warden: Systemd-managed file monitoring service/daemon w/ notificiationsSystemd-managed file monitoring service/daemon w/ notificiations - AntoninoAdornetto/file-warden

minor news on my #Xmoji (#X11 #emoji #keyboad): The #kqueue backend for watching the config file now works on #FreeBSD (as far as I can tell, hard to test every possible edge case).

I also want to add #inotify for #Linux. I just realized I'll need a Linux machine to properly do that. So, installing Debian in bhyve. Joined my samba domain, mounted my #kerberos-encrypted #NFS homedirs, couldn't login, no idea where to find diagnostic output with dreaded systemd ... but right now I found the solution to the problem:

# ln -s /usr/bin/zsh /usr/local/bin/zsh

😂🤪