MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / waitpid

Function waitpid

components/lwp/lwp_pid.c:1664–1667  ·  view source on GitHub ↗

* @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

Source from the content-addressed store, hash-verified

1662 * @note This is a wrapper function that calls lwp_waitpid with NULL for the resource usage parameter
1663 */
1664pid_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/**

Callers 1

sys_waitpidFunction · 0.85

Calls 1

lwp_waitpidFunction · 0.85

Tested by

no test coverage detected