From 3e396d8e4ed80933dbbe630ff3999887bbd4e639 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 2 Sep 2018 15:33:22 -0600 Subject: [PATCH] apps/nshlib: Fix a copy paste error introduced in commit 9a42be5e9b00c0594fbf5590ded17c4407670e6e --- nshlib/nsh_builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nshlib/nsh_builtin.c b/nshlib/nsh_builtin.c index c7a1768d9..57fa8c8ea 100644 --- a/nshlib/nsh_builtin.c +++ b/nshlib/nsh_builtin.c @@ -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