up | Inhaltsverzeichniss | Kommentar

Manual page for FORK(2V)

fork - create a new process

SYNOPSIS

int fork()

SYSTEM V SYNOPSIS

pid_t fork()

DESCRIPTION

fork() creates a new process. The new process (child process) is an exact copy of the calling process except for the following:

RETURN VALUES

On success, fork() returns 0 to the child process and returns the process ID of the child process to the parent process. On failure, fork() returns -1 to the parent process, sets errno to indicate the error, and no child process is created.

ERRORS

fork() will fail and no child process will be created if one or more of the following are true:

EAGAIN
The system-imposed limit on the total number of processes under execution would be exceeded. This limit is determined when the system is generated.

The system-imposed limit on the total number of processes under execution by a single user would be exceeded. This limit is determined when the system is generated.

ENOMEM
There is insufficient swap space for the new process.

SEE ALSO

execve.2v getitimer.2 getrlimit.2 lseek.2v read.2v semop.2 wait.2v write.2v


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97