cederom commented on PR #4209:
URL: https://github.com/apache/nuttx-apps/pull/4209#issuecomment-7296826290

   LGTM apart from small points. The new case runs `W_EXITCODE(5, 0)` and 
`W_STOPCODE(SIGSTOP)` against real `waitpid()` results, and it reuses the 
existing `exit` and `stop` children and their cleanup. A stopped child is 
always reaped through `child_kill()`.
   
   - If the nuttx side takes up `W_EXITCODE(0, sig)` decoding (see my comment 
on apache/nuttx#22583), please add a check that needs no child: 
`WIFSIGNALED(W_EXITCODE(0, SIGKILL)) && WTERMSIG(W_EXITCODE(0, SIGKILL)) == 
SIGKILL && !WIFEXITED(...) && !WIFSTOPPED(...)`.
   - Nit: the `#else` branch reports a FAIL. That's fine as a regression check 
against nuttx master. Just be aware that this app run against an older NuttX 
reports a failure where the rest of the file reports a SKIP for missing 
features.
   - Nit: if the first `posix_spawn()` fails, the function returns, so 
`w-stopcode` never runs and isn't reported either. You could fall through to 
the stop part instead of returning.
   - Nit: the PR text speaks of one case, `w-exitcode`, but there are two 
result names (`w-exitcode`, `w-stopcode`).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to