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

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