Blame SOURCES/autofs-5.0.7-fix-syncronize-handle_mounts-shutdown.patch

306fa1
autofs-5.0.7 - fix syncronize handle_mounts() shutdown
306fa1
306fa1
From: Ian Kent <raven@themaw.net>
306fa1
306fa1
A recent change to fix a problem where automount would exit when re-reading
306fa1
the master map if more than on entry had been removed causes automount to
306fa1
ignore HUP signals if the mount list is empty.
306fa1
306fa1
Removing that check and testing shows that the remainder of the change still
306fa1
fixes the original problem.
306fa1
---
306fa1
 CHANGELOG          |    1 +
306fa1
 daemon/automount.c |    2 +-
306fa1
 2 files changed, 2 insertions(+), 1 deletion(-)
306fa1
306fa1
--- autofs-5.0.7.orig/CHANGELOG
306fa1
+++ autofs-5.0.7/CHANGELOG
306fa1
@@ -56,6 +56,7 @@
306fa1
 - don't override LDFLAGS in make rules.
306fa1
 - fix a couple of compiler warnings.
306fa1
 - add after sssd dependency to unit file.
306fa1
+- fix syncronize handle_mounts() shutdown.
306fa1
 
306fa1
 25/07/2012 autofs-5.0.7
306fa1
 =======================
306fa1
--- autofs-5.0.7.orig/daemon/automount.c
306fa1
+++ autofs-5.0.7/daemon/automount.c
306fa1
@@ -1286,7 +1286,7 @@ static int do_hup_signal(struct master *
306fa1
 
306fa1
 	master_mutex_lock();
306fa1
 	/* Already doing a map read or shutdown or no mounts */
306fa1
-	if (master->reading || list_empty(&master->mounts)) {
306fa1
+	if (master->reading) {
306fa1
 		status = pthread_mutex_unlock(&mrc.mutex);
306fa1
 		if (status)
306fa1
 			fatal(status);