check_waitpid_and_exit
Description:
[ CCode ( cname = "check_waitpid_and_exit" ) ]
[ NoReturn ]
[ Version ( since = "0.9.3" ) ]
public void check_waitpid_and_exit (pid_t pid)
[ NoReturn ]
[ Version ( since = "0.9.3" ) ]
public void check_waitpid_and_exit (pid_t pid)
Wait for the pid and exit.
This is to be used in conjunction with check_fork. When called, will wait for the given process to terminate. If the process exited without error, exit(EXIT_SUCCESS) is invoked; otherwise exit(EXIT_FAILURE) is invoked.
If Check is compiled without support for fork(), this invokes exit(EXIT_FAILURE).
Parameters:
pid |
process to wait for, created by check_fork |
Since:
0.9.3
Namespace: Check
Package: check