A recent change to fix a problem where automount would exit when re-reading the master map if more than on entry had been removed causes automount to ignore HUP signals if the mount list is empty. Removing that check and testing shows that the remainder of the change still fixes the original problem. --- CHANGELOG | 1 + daemon/automount.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 07f9d6d..618ac20 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -71,6 +71,7 @@ - fix dumpmaps multi output. - try and cleanup after dumpmaps. - teach dumpmaps to output simple key value pairs. +- fix syncronize handle_mounts() shutdown. 25/07/2012 autofs-5.0.7 ======================= diff --git a/daemon/automount.c b/daemon/automount.c index 2ce49bf..97c726a 100644 --- a/daemon/automount.c +++ b/daemon/automount.c @@ -1286,7 +1286,7 @@ static int do_hup_signal(struct master *master, time_t age) master_mutex_lock(); /* Already doing a map read or shutdown or no mounts */ - if (master->reading || list_empty(&master->mounts)) { + if (master->reading) { status = pthread_mutex_unlock(&mrc.mutex); if (status) fatal(status); -- To unsubscribe from this list: send the line "unsubscribe autofs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html