Creates a child process.
#include <unistd.h> pid_t fork ( void);
On success, returns the PID of the child process in the parent's thread of execution and 0 is returned in the child's thread of execution.
On failure, returns -1 in the parent's context, no child process is created, and errno is set to the appropriate value.
IMPORTANT:This function is only available to NLMs that link with the POSIX semantics flag and load into protected address space (ring3). If these requirements are not met, errno is set to ENOSYS.
The child process differs from the parent process only in its PID and PPID and in that resource utilizations are set to 0. Also, file locks and pending signals are not inherited.