From: NeilBrown Date: Tue, 4 Nov 2008 09:51:12 +0000 (+1100) Subject: Assemble: we were missing a 'close' X-Git-Tag: mdadm-3.0-devel2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56a8da69b1decc48d6563202648a89a630866d61;p=thirdparty%2Fmdadm.git Assemble: we were missing a 'close' Signed-off-by: NeilBrown --- diff --git a/Assemble.c b/Assemble.c index 12e67b2c..0aff1be8 100644 --- a/Assemble.c +++ b/Assemble.c @@ -1169,6 +1169,7 @@ int Assemble(struct supertype *st, char *mddev, } if (auto_assem) ioctl(mdfd, STOP_ARRAY, NULL); + close(mdfd); return 1; } else { /* The "chosen_drive" is a good choice, and if necessary, the superblock has