Only notify the proc server for SIGCHLD when the SA_NOCLDSTOP bit actually changes.

This commit is contained in:
Roland McGrath 1995-05-26 16:59:33 +00:00
parent cc2f1c49e9
commit 074d099ee3
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ DEFUN(__sigaction, (sig, act, oact),
if (act != NULL)
ss->actions[sig] = a;
if (act != NULL && sig == SIGCHLD)
if (act != NULL && sig == SIGCHLD &&
(a.sa_flags & SA_NOCLDSTOP) != (old.sa_flags & SA_NOCLDSTOP))
{
ss->critical_section = 1;
__spin_unlock (&ss->lock);