From owner-cvs-all Tue Dec 5 19:45:18 2000 From owner-cvs-all@FreeBSD.ORG Tue Dec 5 19:45:15 2000 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id AB8C637B400; Tue, 5 Dec 2000 19:45:15 -0800 (PST) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eB63jFe65726; Tue, 5 Dec 2000 19:45:15 -0800 (PST) (envelope-from jhb) Message-Id: <200012060345.eB63jFe65726@freefall.freebsd.org> From: John Baldwin Date: Tue, 5 Dec 2000 19:45:15 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_kthread.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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