rfork_thread man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

RFORK_THREAD(3)		 BSD Library Functions Manual	       RFORK_THREAD(3)

NAME
     rfork_thread — create a rfork-based process thread

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <unistd.h>

     pid_t
     rfork_thread(int flags, void *stack, int (*func)(void *arg), void *arg);

DESCRIPTION
     The rfork_thread() function is a helper function for rfork(2).  It
     arranges for a new process to be created and the child process will call
     the specified function with the specified argument, while running on the
     supplied stack.

     Using this function should avoid the need to implement complex stack swap
     code.

RETURN VALUES
     Upon 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
     rfork_thread() function as it begins executing directly with the supplied
     function.

ERRORS
     See rfork(2) for error return codes.

SEE ALSO
     fork(2), intro(2), minherit(2), rfork(2), vfork(2)

HISTORY
     The rfork_thread() function first appeared in FreeBSD 4.3.

BSD				 July 29, 2000				   BSD
[top]

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net