From ff84d11216f35f9c6bca43181691b6ae796d249e Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Fri, 9 Nov 2012 16:09:20 +0000 Subject: [PATCH] PM: do not panic if sys_sigsend returns ENOMEM --- servers/pm/signal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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. */ -- 2.44.0