cvs commit: src/sys/kern kern_clock.c

Brian Fundakowski Feldman green at FreeBSD.org
Mon May 3 08:10:38 PDT 2004


Colin Percival <cperciva at FreeBSD.org> wrote:
> cperciva    2004/05/02 17:48:11 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/kern             kern_clock.c 
>   Log:
>   Fix a race condition which could result in profprocs being decremented
>   more than once if stopprofclock is called multiple times on the same
>   process.

FWIW, the sched_lock enclosing the p->p_flag modification seems pretty bogus.

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green at FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\




More information about the cvs-src mailing list