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

看板DFBSD_commit作者時間14年前 (2011/12/28 02:04), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1E-WZ7uq (DFBSD_commit)