]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdmon.c
Remove stopped arrays.
[thirdparty/mdadm.git] / mdmon.c
diff --git a/mdmon.c b/mdmon.c
index c8a3341effc59ac0338f513cb03b6edb0671bcf3..7ba8be04a8d547653eb520b276d61eae7785c19f 100644 (file)
--- a/mdmon.c
+++ b/mdmon.c
@@ -48,6 +48,12 @@ struct md_generic_cmd *active_cmd;
 int run_child(void *v)
 {
        struct supertype *c = v;
+       sigset_t set;
+       /* SIGUSR is sent from child to parent,  So child must block it */
+       sigemptyset(&set);
+       sigaddset(&set, SIGUSR1);
+       sigprocmask(SIG_BLOCK, &set, NULL);
+
        do_monitor(c);
        return 0;
 }