AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

FORK(2) FORK(2) The system-imposed limit on the total number of processes under execution by a single user would be exceeded. [EAGAINJ RETURN VALUE Upon successful completion, fork returns a value of 0 to the child process and 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 errno is set to indicate the error. SEE ALSO exec(2), times(2), wait(2). - 2-

GETPID ( 2} GETPID (2) NAME getpid, getpgrp, getppid - get process, process group, and parent process IDs SYNOPSIS int getpid ( ) int getpgrp ( ) int getppid ( ) DESCRIPTION Getpid returns the process ID of the calling process. Getpgrp returns the process group ID of the calling process. Getppid returns the parent process ID of the calling process. SEE ALSO exec(2), fork(2), intro(2), setpgrp(2), signal(2). - 1 -

FORK(2) FORK(2)<br />

The system-imposed limit on the total number of<br />

processes under execution by a single user would be<br />

exceeded. [EAGAINJ<br />

RETURN VALUE<br />

Upon successful completion, fork returns a value of 0 to the child<br />

process and returns the process ID of the child process to the<br />

parent process. Otherwise, a value of -1 is returned to the parent<br />

process, no child process is created, and errno is set to indicate<br />

the error.<br />

SEE ALSO<br />

exec(2), times(2), wait(2).<br />

- 2-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!