Subject: Re: kern/37004
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Aaron J. Grier <aaron@frye.com>
List: netbsd-bugs
Date: 09/20/2007 01:10:09
The following reply was made to PR kern/37004; it has been noted by GNATS.

From: "Aaron J. Grier" <aaron@frye.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/37004
Date: Wed, 19 Sep 2007 18:07:49 -0700

 I backed out the previous patch and tried the following:
 
 Index: kern/kern_exit.c
 ===================================================================
 RCS file: /cvsroot/src/sys/kern/kern_exit.c,v
 retrieving revision 1.162.2.1
 diff -u -r1.162.2.1 kern_exit.c
 --- kern/kern_exit.c	1 Apr 2007 16:16:20 -0000	1.162.2.1
 +++ kern/kern_exit.c	20 Sep 2007 01:01:15 -0000
 @@ -241,6 +241,8 @@
  	sigemptyset(&p->p_sigctx.ps_siglist);
  	p->p_sigctx.ps_sigcheck = 0;
  	p->p_stat = SDYING;
 +	/* if we're dying, we can't give SIGINFO */
 +	SIGACTION(p, SIGINFO).sa_flags &= ~SA_SIGINFO;
  	timers_free(p, TIMERS_ALL);
  
  	if (sa || (p->p_nlwps > 1)) {
 
 with no success.
 
 the problem does not appear to exist under netbsd-3, so I will be
 reverting to it until I can confirm a fix for later versions.  (which is
 unfortunate... I was very much looking forward to using Mindaugas' work
 on POSIX message queues in -current.)
 
 -- 
   Aaron J. Grier  |   Frye Electronics, Tigard, OR   |  aaron@frye.com