git: DragonFly_RELEASE_4_6 kernel - Fix lwp_fork/exit race
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Aug 2 22:34:17 PDT 2016
commit 987e141bd7f49edb03f000db9bb2bdc4d672b64d
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(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/987e141bd7f49edb03f000db9bb2bdc4d672b64d
--
DragonFly BSD source repository
More information about the Commits
mailing list