* @brief Waits for a child process to terminate * * @param[in] pid The process ID to wait for * @param[out] status Pointer to store child exit status (optional) * @param[in] options Wait options (e.g., WNOHANG, WUNTRACED) * * @return pid_t The process ID of the child whose state changed, * -1 on error, or 0 if WNOHANG was specified and no child was available * * @note This is a wr
| 1662 | * @note This is a wrapper function that calls lwp_waitpid with NULL for the resource usage parameter |
| 1663 | */ |
| 1664 | pid_t waitpid(pid_t pid, int *status, int options) |
| 1665 | { |
| 1666 | return lwp_waitpid(pid, status, options, RT_NULL); |
| 1667 | } |
| 1668 | |
| 1669 | #ifdef RT_USING_FINSH |
| 1670 | /** |
no test coverage detected