Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Dec 2000 19:45:15 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_kthread.c
Message-ID:  <200012060345.eB63jFe65726@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2000/12/05 19:45:15 PST

  Modified files:
    sys/kern             kern_kthread.c 
  Log:
  Pass RFSTOPPED to fork1() in kthread_create() to avoid a race condition
  where fork1() could put the process on the run queue where it could be
  snatched up by another CPU before kthread_create() had set the proper
  fork handler.  Instead, we put the new kthread on the runqueue after its
  fork handler has been sent.
  
  Noticed by:	jake
  Looked over by:	peter
  
  Revision  Changes    Path
  1.9       +10 -2     src/sys/kern/kern_kthread.c



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012060345.eB63jFe65726>