DragonFly BSD
DragonFly commits List (threaded) for 2011-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Fix alarm() timer race against exit


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 7 Dec 2011 18:53:31 -0800 (PST)

commit a471eac535f632f45345fec35628581b8931e2b1
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Wed Dec 7 18:44:15 2011 -0800

    kernel - Fix alarm() timer race against exit
    
    * Stop the callout synchronously to ensure that any pending alarm timeout
      is completely removed before we allow a process to exit.
    
    * Add a required PHOLD() to the relaitexpire() function.

Summary of changes:
 sys/kern/kern_exit.c    |    2 +-
 sys/kern/kern_time.c    |   11 ++++++-----
 sys/kern/kern_timeout.c |   10 ++++++++--
 3 files changed, 15 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a471eac535f632f45345fec35628581b8931e2b1


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]