]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - util.c
In case launching mdmon fails, print an error message before exiting
[thirdparty/mdadm.git] / util.c
diff --git a/util.c b/util.c
index 01af0b5e580fbb948e5088b92757b9ed889a4d42..8817a3e22ac35bbd235a2e995dd39ac1df1e2698 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1709,8 +1709,11 @@ int start_mdmon(int devnum)
                return -1;
        default: /* parent - good */
                pid = wait(&status);
-               if (pid < 0 || status != 0)
+               if (pid < 0 || status != 0) {
+                       pr_err("failed to launch mdmon. "
+                              "Array remains readonly\n");
                        return -1;
+               }
        }
        return 0;
 }