git: kernel - Fix lwp_fork/exit race

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Aug 2 22:31:23 PDT 2016


commit ae1f1544c90b64f747ee70562f8c71101ff3603a
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/ae1f1544c90b64f747ee70562f8c71101ff3603a


-- 
DragonFly BSD source repository



More information about the Commits mailing list