multipath: don't clear daemon setting on reconfigure
authorBenjamin Marzinski <bmarzins@redhat.com>
Thu, 20 May 2010 04:00:45 +0000 (23:00 -0500)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Thu, 20 May 2010 04:50:43 +0000 (06:50 +0200)
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.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
multipathd/main.c

index d2c2cc3..3d9ff31 100644 (file)
@@ -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;