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

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