HomeFreeBSD

Make forking of CloudABI processes work.

Description

Make forking of CloudABI processes work.

Just like FreeBSD+Capsicum, CloudABI uses process descriptors. Return
the file descriptor number to the parent process.

To the child process we both return a special value for the file
descriptor number (CLOUDABI_PROCESS_CHILD). We also return the thread ID
of the new thread in the copied process, so the threading library can
reinitialize itself.

Obtained from: https://github.com/NuxiNL/freebsd

Details

Provenance
edAuthored on
Parents
rS285715: Add an API for easily creating userspace threads in kernelspace.
Branches
Unknown
Tags
Unknown