mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-03 21:29:05 +00:00
apps/nshlib: Fix a copy paste error introduced in commit 9a42be5e9b
This commit is contained in:
parent
9a42be5e9b
commit
3e396d8e4e
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ int nsh_builtin(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
|
|||
* waitpid() to return with ECHILD.
|
||||
*/
|
||||
|
||||
ret = waitpid(pid, &rc, WUNTRACED);
|
||||
ret = waitpid(ret, &rc, WUNTRACED);
|
||||
if (ret < 0)
|
||||
{
|
||||
/* If the child thread does not exist, waitpid() will return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue