index
:
mdadm
main
mdadm
Fast-forward packages
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
mdadm.c
2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdadm.c b/mdadm.c
index d80aab36..7cdcdba7 100644
--- a/
mdadm.c
+++ b/
mdadm.c
@@ -1734,6 +1734,8 @@ int main(int argc, char *argv[])
autodetect();
break;
}
+ if (mdfd > 0)
+ close(mdfd);
exit(rv);
}