git: DragonFly_RELEASE_4_6 kernel - Fix lwp_fork/exit race
dillon at crater.dragonflybsd.org
Tue Aug 2 22:34:17 PDT 2016
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Tue Aug 2 22:28:54 2016 -0700
kernel - Fix lwp_fork/exit race
* In a multi-threaded program it is possible for the exit sequence to
deadlock if one thread is trying to exit (exit the entire process)
while another thread is simultaniously creating a new thread.
* Fix the issue by having the new thread checking for the exit condition and
sending a SIGKILL to itself. And kprintf() a message when it happens.
Summary of changes:
sys/platform/pc64/x86_64/trap.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
DragonFly BSD source repository
More information about the Commits