HomeFreeBSD

When checking to see if a process has exceeded its time limit, flag the
rS152899Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

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

Details

Provenance
jhbAuthored on
Parents
rS152898: MFC: Added NO_INCS, use it to prevent overwriting of native
Branches
Unknown
Tags
Unknown

Event Timeline