mirror of
https://github.com/apache/nuttx.git
synced 2026-08-04 05:39:01 +00:00
fix wait after vfork return error
vfork use waitpid hang father process, but waitpid release child processs information by default. So when user call wait, it return errno 10. Signed-off-by: yangyalei <yangyalei@xiaomi.com>
This commit is contained in:
parent
eba2f163ed
commit
fd776e8cee
4 changed files with 11 additions and 8 deletions
|
|
@ -1456,7 +1456,7 @@ void nxsched_get_stateinfo(FAR struct tcb_s *tcb, FAR char *state,
|
|||
* Input Parameters:
|
||||
* pid - The task ID of the thread to waid for
|
||||
* stat_loc - The location to return the exit status
|
||||
* options - ignored
|
||||
* options - Modifiable behavior, see sys/wait.h.
|
||||
*
|
||||
* Returned Value:
|
||||
* If nxsched_waitpid() returns because the status of a child process is
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue