Date: Mon, 28 Nov 2005 19:09:08 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_synch.c Message-ID: <200511281909.jASJ98Vf009342@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2005-11-28 19:09:08 UTC FreeBSD src repository Modified files: sys/kern kern_synch.c Log: When checking to see if a process has exceeded its time limit, flag the process as over the limit when its time is >= to the limit rather than > the limit. Technically, if p->p_rux.rux_runtime.sec == p->p_pcpulimit and p->p_rux.rux_runtime.frac == 0, the process hasn't exceeded the limit yet. However, having the fraction exactly equal to 0 is rather rare, and it is not worth the overhead to handle that edge case. With just the > comparison, the process would have to exceed its limit by almost a second before it was killed. PR: kern/83192 Submitted by: Maciej Zawadzinski mzawadzinski at gmail dot com Reviewed by: bde MFC after: 1 week Revision Changes Path 1.271 +2 -2 src/sys/kern/kern_synch.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511281909.jASJ98Vf009342>