]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super0.c
DDF: fix incorrect header magic number.
[thirdparty/mdadm.git] / super0.c
index 15b3ca2f6ba5069f9146eb63a1fa5ffb58ee58b7..0485a3a103df69ecc90f5479de0c37fdf1441ee6 100644 (file)
--- a/super0.c
+++ b/super0.c
@@ -725,8 +725,8 @@ static int write_init_super0(struct supertype *st)
                        continue;
                if (di->fd == -1)
                        continue;
-               Kill(di->devname, 0, 1, 1);
-               Kill(di->devname, 0, 1, 1);
+               while (Kill(di->devname, NULL, 0, 1, 1) == 0)
+                       ;
 
                sb->disks[di->disk.number].state &= ~(1<<MD_DISK_FAULTY);