Sometimes userspace is made to suck, I mean poll
Posted Jul 27, 2006 16:34 UTC (Thu) by
gdt (subscriber, #6284)
Parent article:
OLS: On how user space sucks
linux-2.6.17/Documentation/feature-removal-schedule.txt says:
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).
(
Log in to post comments)