]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Keep container device open in monitor
authorNeil Brown <neilb@suse.de>
Sat, 12 Jul 2008 10:27:42 +0000 (20:27 +1000)
committerNeil Brown <neilb@suse.de>
Sat, 12 Jul 2008 10:27:42 +0000 (20:27 +1000)
... so that it cannot be stopped while there are active arrays.
I don't know where that second 'close' came from ....

mdmon.c

diff --git a/mdmon.c b/mdmon.c
index 407f637add3b400c5b72c401a3da00063df38dbf..99f2f2c419ba052c6a78d55dc3c7d69a3ba84389 100644 (file)
--- a/mdmon.c
+++ b/mdmon.c
@@ -270,8 +270,6 @@ int main(int argc, char *argv[])
                        argv[1]);
                exit(3);
        }
-       close(mdfd);
-       close(mdfd);
 
        mlockall(MCL_FUTURE);