]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdstat.c
Remove stopped arrays.
[thirdparty/mdadm.git] / mdstat.c
index a65e7c3ab49b2362aa5a961feecaeec2ecfcf046..040df150c74cec0eb5b64597ad604d0c80129fcb 100644 (file)
--- a/mdstat.c
+++ b/mdstat.c
@@ -272,7 +272,7 @@ void mdstat_wait(int seconds)
        select(mdstat_fd >2 ? mdstat_fd+1:3, NULL, NULL, &fds, &tm);
 }
 
-void mdstat_wait_fd(int fd)
+void mdstat_wait_fd(int fd, const sigset_t *sigmask)
 {
        fd_set fds, rfds;
 
@@ -282,7 +282,8 @@ void mdstat_wait_fd(int fd)
                FD_SET(mdstat_fd, &fds);
        FD_SET(fd, &rfds);
 
-       select(mdstat_fd >2 ? mdstat_fd+1:3, &rfds, NULL, &fds, NULL);
+       pselect(mdstat_fd >2 ? mdstat_fd+1:3, &rfds, NULL, &fds,
+               NULL, sigmask);
 }
 
 int mddev_busy(int devnum)