From: Neil Brown Date: Sat, 12 Jul 2008 10:27:42 +0000 (+1000) Subject: Keep container device open in monitor X-Git-Tag: mdadm-3.0-devel1~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7c149300b170656485f4ac10ed7cfbd4fd6d0bb;p=thirdparty%2Fmdadm.git Keep container device open in monitor ... so that it cannot be stopped while there are active arrays. I don't know where that second 'close' came from .... --- diff --git a/mdmon.c b/mdmon.c index 407f637a..99f2f2c4 100644 --- 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);