X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=monitor.c;h=e29d023a4c756c9ad1599b5c283988ad1c479f00;hp=314889657aaae88629241ab4ae69d80b4832284a;hb=1eb252b8488bbdd62ad602561fe8a90ef9079271;hpb=103f2410ec581620367d6fde67a3a62f077062a7 diff --git a/monitor.c b/monitor.c index 31488965..e29d023a 100644 --- a/monitor.c +++ b/monitor.c @@ -405,6 +405,8 @@ static void dprint_wake_reasons(fd_set *fds) } #endif +int monitor_loop_cnt; + static int wait_and_act(struct supertype *container, int nowait) { fd_set rfds; @@ -462,7 +464,9 @@ static int wait_and_act(struct supertype *container, int nowait) sigset_t set; sigprocmask(SIG_UNBLOCK, NULL, &set); sigdelset(&set, SIGUSR1); + monitor_loop_cnt |= 1; rv = pselect(maxfd+1, &rfds, NULL, NULL, NULL, &set); + monitor_loop_cnt += 1; if (rv == -1 && errno == EINTR) rv = 0; #ifdef DEBUG