Skip to contentSkip to conversation

multipath: don't clear daemon setting on reconfigure

PATCH New Benjamin Marzinski 1 participant 1 message May 20, 2010 Device mapper

lore
Share & tools
lore

Benjamin Marzinski

author maintainer
#0 lore raw

PATCH 1/1 multipath: don't clear daemon setting on reconfigure

When you reconfigure multipathd, it needs to set the daemon flag in the new config structure, so that the daemon only-code will still work.

---
 multipathd/main.c |    1 +
 1 file changed, 1 insertion(+)
multipathd/main.c +1 -0
Index: multipath-tools-100510/multipathd/main.c
===================================================================
@@ -1198,6 +1198,7 @@ reconfigure (struct vectors * vecs)
 		conf->checkint = DEFAULT_CHECKINT;
 		conf->max_checkint = MAX_CHECKINT(conf->checkint);
 	}
+	conf->daemon = 1;
 	configure(vecs, 1);
 	free_config(old);
 	return 0;