]> Zhao Yanbai Git Server - minix.git/commitdiff
Always skip signals for PM itself when broadcasting.
authorCristiano Giuffrida <cristiano@minix3.org>
Thu, 3 Jun 2010 11:18:43 +0000 (11:18 +0000)
committerCristiano Giuffrida <cristiano@minix3.org>
Thu, 3 Jun 2010 11:18:43 +0000 (11:18 +0000)
servers/pm/signal.c

index 933f0151858993dcb754fb0be343e1ec81263afb..be287d631df32ab7f8169d413bb332e7a65edca5 100644 (file)
@@ -370,6 +370,11 @@ int ksig;                  /* non-zero means signal comes from kernel  */
                return;
        }
 
+       /* Always skip signals for PM (only necessary when broadcasting). */
+       if(rmp->mp_endpoint == PM_PROC_NR) {
+               return;
+       }
+
        /* Print stacktrace if necessary. */
        if(SIGS_IS_STACKTRACE(signo)) {
                sys_sysctl_stacktrace(rmp->mp_endpoint);