Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jun 2002 12:38:11 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        "M. Warner Losh" <imp@village.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, dwmalone@maths.tcd.ie
Subject:   Re: cvs commit: src/sys/kern kern_sig.c
Message-ID:  <XFMail.20020607123811.jhb@FreeBSD.org>
In-Reply-To: <20020607.095516.116907129.imp@village.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 07-Jun-2002 M. Warner Losh wrote:
> In message: <XFMail.20020607091038.jhb@FreeBSD.org>
>             John Baldwin <jhb@FreeBSD.org> writes:
>: You mean the SIGXCPU that is commented out in mi_switch()?  It will
>: be turned back on when I or someone else figures out how to do it
>: safely. :)
> 
> I thought that was commented out due to a bug where time would go
> backwards every so often, causing there to be 2^32 or so time to be
> charged to the process, which put it over the limit.

It's commented out because of locking problems.  mi_switch() is often
called with p_stat set to something else like SSLEEP or what not.  If
we block on the proc lock to do the psignal, then when we finally get
the lock p_stat will be SRUN.  We might be able to do the check at the
very end of mi_switch() though.

> Warner

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020607123811.jhb>