|
NAMErfork_thread —
create a rfork-based process thread
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <unistd.h>
pid_t
DESCRIPTIONThe
rfork_thread () function has been
deprecated in favor of
pthread_create(3).The Using this function should avoid the need to implement complex stack swap code. RETURN VALUESUpon successful completion,rfork_thread () returns the
process ID of the child process to the parent process. Otherwise, a value of
-1 is returned to the parent process, no child process is created, and the
global variable errno is set to indicate the error.
The child process context is not aware of a return from the
ERRORSSee rfork(2) for error return codes.SEE ALSOfork(2), intro(2), minherit(2), rfork(2), vfork(2), pthread_create(3)HISTORYTherfork_thread () function first appeared in
FreeBSD 4.3.
Visit the GSP FreeBSD Man Page Interface. |