From: Cristiano Giuffrida Date: Thu, 3 Jun 2010 11:18:43 +0000 (+0000) Subject: Always skip signals for PM itself when broadcasting. X-Git-Tag: v3.1.7~8 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/host.html?a=commitdiff_plain;h=332842295a2fa1f1e6fdde6e6a4eaf359922da84;p=minix.git Always skip signals for PM itself when broadcasting. --- diff --git a/servers/pm/signal.c b/servers/pm/signal.c index 933f01518..be287d631 100644 --- a/servers/pm/signal.c +++ b/servers/pm/signal.c @@ -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);