Don Alexander wrote:
Maybe this is a little off topic. But have you thought about using inotify to monitor events? ... I believe it can be used for any fs including sysfs? No?
No, not for sysfs. According to http://www.nabble.com/sysfs-and-inotify-td23021094.html, select() or poll() would do.
Anyway, thanks. Janusz