[Overview][Constants][Types][Procedures and functions][Index] |
Wait for a process to terminate
Source position: bunxh.inc line 66
function FpWaitpid( |
pid: TPid; |
stat_loc: pcint; |
options: cint |
):TPid; |
pid: TPid; |
var Status: cint; |
Options: cint |
):TPid; |
fpWaitPid waits for a child process with process ID Pid to exit. The value of Pid can be one of the following:
The Options parameter can be used to specify further how fpWaitPid behaves:
The exit status of the process that caused fpWaitPID is reported in stat_loc or Status.
Upon return, it returns the process id of the process that exited, 0 if no process exited, or -1 in case of failure.
For an example, see fpFork.
Extended error information can be retrieved using fpgetErrno.
|
Create child process |
|
|
Execute process using environment |
|
|
Wait for a child to exit. |