DACS_ERR_T dacs_de_wait ( de_id_t de, dacs_process_id_t pid, int32_t *exit_status )
Call parameters | |
de | The target DE. |
pid | The target process. |
Return parameter | |
*exit_status | A pointer to a location where the exit code is stored (if DACS_STS_PROC_FINISHED or DACS_STS_PROC_FAILED) or the signal number (if DACS_STS_PROC_ABORTED). |
The dacs_de_wait service returns the status of the target process if it was successful, or an error code if not. If the process is running at the time of the call, the call blocks until it finishes execution. If the process has finished execution at the time of the call, the call does not block.
When this service or dacs_de_test() detects a finished, failed, or aborted status, the status is reaped. Once the status of a process has been reaped, subsequent calls to query its status will fail with DACS_ERR_INVALID_PID.