From c7c149300b170656485f4ac10ed7cfbd4fd6d0bb Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Sat, 12 Jul 2008 20:27:42 +1000 Subject: [PATCH] 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 .... --- mdmon.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mdmon.c b/mdmon.c index 407f637..99f2f2c 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);