Subject: Re: CVS commit: syssrc/sys
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: source-changes
Date: 12/15/2002 09:48:01
On Thu, Dec 12, 2002 at 02:29:25AM +0200, Emmanuel Dreyfus wrote:

 > Log Message:
 > Added a few Mach traps: mach_boostrap_register, mach_port_set_attributes,
 > mach_port_move_member, mach_port_set_attributes, mach_task_set_special_port,
 > (none do anything)
 > Added mach_thread_create_running, which creates a new Mach thread. It
 > provides the register context of the new thread. We use it in a child
 > function provided to fork1(). The child function is machine dependent and
 > is not yet implemented for i386.
 > 
 > The new thread crashes quickly, but at least it starts.

You should not use fork1() for creating new mach threads.  You should be
using the lwp-related calls ... right now, those are only available on
the nathanw_sa branch.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>