From: David van Moolenbroek Date: Fri, 9 Nov 2012 16:09:20 +0000 (+0000) Subject: PM: do not panic if sys_sigsend returns ENOMEM X-Git-Tag: v3.2.1~235 X-Git-Url: http://zhaoyanbai.com/repos/dnssec-signzone.html?a=commitdiff_plain;h=ff84d11216f35f9c6bca43181691b6ae796d249e;p=minix.git PM: do not panic if sys_sigsend returns ENOMEM --- diff --git a/servers/pm/signal.c b/servers/pm/signal.c index 5e2901f72..acf7a4785 100644 --- a/servers/pm/signal.c +++ b/servers/pm/signal.c @@ -738,10 +738,10 @@ int signo; /* signal to send to process (1 to _NSIG-1) */ /* Ask the kernel to deliver the signal */ r = sys_sigsend(rmp->mp_endpoint, &sigmsg); - /* sys_sigsend can fail legitimately with EFAULT if - * the process memory can't accomodate the signal handler. - */ - if(r == EFAULT) { + /* sys_sigsend can fail legitimately with EFAULT or ENOMEM if + * the process memory can't accomodate the signal handler. + */ + if(r == EFAULT || r == ENOMEM) { return(FALSE); } /* Other errors are unexpected pm/kernel discrepancies. */