summaryrefslogtreecommitdiff
path: root/Build.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-04-07 17:34:38 +1000
committerNeilBrown <neilb@suse.de>2009-04-07 17:34:38 +1000
commita7c6e3fb24f8335005a6ff8e0eb668faa257c941 (patch)
tree586861457108a56d57ffb64ea2672514e89a1c74 /Build.c
parentb1b12d58194e42208e4828ea5818279c00a0ed18 (diff)
wait_for improvement.
wait not only for the name to appear, but for it to refer to the correct device. Sometimes old symlinks left lying around can be confusing. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Build.c')
-rw-r--r--Build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build.c b/Build.c
index 52fc0ca0..358f8e6f 100644
--- a/Build.c
+++ b/Build.c
@@ -281,8 +281,8 @@ int Build(char *mddev, int chunk, int level, int layout,
if (verbose >= 0)
fprintf(stderr, Name ": array %s built and started.\n",
mddev);
+ wait_for(mddev, mdfd);
close(mdfd);
- wait_for(mddev);
return 0;
abort: