Hi, Ian,

This looks like a minor oversight.

Cheers,
Jeff

Signed-off-by: Jeff Moyer <jmo...@redhat.com>

diff --git a/daemon/state.c b/daemon/state.c
index 2eeb4bf..27bc6de 100644
--- a/daemon/state.c
+++ b/daemon/state.c
@@ -160,7 +160,7 @@ void expire_cleanup(void *arg)
                         * been signaled to shutdown.
                         */
                        rv = ops->askumount(ap->logopt, ap->ioctlfd, &idle);
-                       if (!idle && !ap->shutdown) {
+                       if (!rv && !idle && !ap->shutdown) {
                                next = ST_READY;
                                if (!ap->submount)
                                        alarm_add(ap, ap->exp_runfreq);

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to