Sometimes userspace is made to suck, I mean poll
Posted Jul 27, 2006 16:34 UTC (Thu) by gdt
Parent article: OLS: On how user space sucks
What: mount/umount uevents
When: February 2007
Why: These events are not correct, and do not properly let userspace know
when a file system has been mounted or unmounted. Userspace should
poll the /proc/mounts file instead to detect this properly.
Also, try and detect if an unrelated process is running without polling (hint: *notify doesn't work on procfs).
to post comments)