FpFork

Create child process

Declaration

Source position: bunxh.inc line 63

  function FpFork : TPid;

Description

FpFork creates a child process which is a copy of the parent process. FpFork returns the process ID in the parent process, and zero in the child's process. (you can get the parent's PID with fpGetPPid ).

Errors

On error, -1 is returned to the parent, and no child is created.

sys_eagain
Not enough memory to create child process.

See also

Name Description
fpExecve Execute process using environment
#rtl.linux.Clone Clone current process (create new thread)