[Overview][Constants][Types][Procedures and functions][Variables] |
Wait for a process to terminate
Source position: oldlinux.pp line 1354
function WaitPid( |
Pid: LongInt; |
Status: pointer; |
Options: LongInt |
):LongInt; |
WaitPidwaits for a child process with process ID Pidto exit. The value of Pidcan be one of the following:
The Optionsparameter can be used to specify further how WaitPidbehaves:
Upon return, it returns the exit status of the process, or -1 in case of failure.
For an example, see Fork.
Errors are returned in LinuxError.
|
Create child process |
|
|
Execute process using environment |