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

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