summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2013-02-01 16:15:19 +0100
committerNeilBrown <neilb@suse.de>2013-02-05 15:51:48 +1100
commit15c10423aa9435ed72bd292fecca69224a20fdc8 (patch)
tree411d56f93da59d31d145c028aac36b02e620cff2 /util.c
parent0f7bdf8946316548500858303549e396655450c5 (diff)
downloadmdadm-15c10423aa9435ed72bd292fecca69224a20fdc8.tar.gz
In case launching mdmon fails, print an error message before exiting
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'util.c')
-rw-r--r--util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/util.c b/util.c
index 01af0b5..8817a3e 100644
--- 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;
}