]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdstat.c
Wait for POLLPRI on /proc or /sys files.
authorNeilBrown <neilb@suse.de>
Tue, 14 Apr 2009 04:59:24 +0000 (14:59 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 14 Apr 2009 04:59:24 +0000 (14:59 +1000)
commit2800528713cd32a4d12d7e17c14eba34eb8a4ec2
treef80c016a09255e2fc3d5c3bab864ca0be46fa588
parentc256924e52249b52bad42963176c42601f1a08f4
Wait for POLLPRI on /proc or /sys files.

From 2.6.30, /proc/mounts and various /sys files will
probably always returns 'readable' to select, so we will need
to wait on POLLPRI to get the 'new data is available' signal.

When using select, this corresponds to an 'exception', so
adjust calls to select accordingly.
In one case we sometimes wait on a socket and sometime on
/proc/mounts, so we need to test which.

Signed-off-by: NeilBrown <neilb@suse.de>
Monitor.c
mdstat.c
monitor.c