svn commit: r212047 - head/sys/kern

David Xu davidxu at freebsd.org
Wed Sep 1 01:24:03 UTC 2010


Jilles Tjoelker wrote:
> On Tue, Aug 31, 2010 at 07:15:50AM +0000, David Xu wrote:
>> Author: davidxu
>> Date: Tue Aug 31 07:15:50 2010
>> New Revision: 212047
>> URL: http://svn.freebsd.org/changeset/base/212047
> 
>> Log:
>>   If a process is being debugged, skips job control caused by SIGSTOP/SIGCONT
>>   signals, because it is managed by debugger, however a normal signal sent to
>>   a interruptibly sleeping thread wakes up the thread so it will handle the
>>   signal when the process leaves the stopped state.
> 
>>   PR:	150138
>>   MFC after:	1 week
> 
>> Modified:
>>   head/sys/kern/kern_sig.c
> 
>> Modified: head/sys/kern/kern_sig.c
>> ==============================================================================
>> --- head/sys/kern/kern_sig.c	Tue Aug 31 06:22:03 2010	(r212046)
>> +++ head/sys/kern/kern_sig.c	Tue Aug 31 07:15:50 2010	(r212047)
>>  		if (sig == SIGKILL) {
>> +			if (p->p_flag & P_TRACED)
>> +				goto out;
>>  			/*
>>  			 * SIGKILL sets process running.
>>  			 * It will die elsewhere.
> 
> Hmm, shouldn't SIGKILL kill right away regardless of debuggers?
> 

Hmm^2, it is a history behavior.





More information about the svn-src-all mailing list