summaryrefslogtreecommitdiff
path: root/mdmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdmon.c')
-rw-r--r--mdmon.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mdmon.c b/mdmon.c
index d633cb0..ee68e3c 100644
--- a/mdmon.c
+++ b/mdmon.c
@@ -514,6 +514,12 @@ static int mdmon(char *devname, int devnum, int must_fork, int takeover)
ignore = dup(0);
#endif
+ /* This silliness is to stop the compiler complaining
+ * that we ignore 'ignore'
+ */
+ if (ignore)
+ ignore++;
+
do_manager(container);
exit(0);