gustavonihei commented on a change in pull request #5819:
URL: https://github.com/apache/incubator-nuttx/pull/5819#discussion_r832107045



##########
File path: sched/task/task_posixspawn.c
##########
@@ -410,7 +410,7 @@ int posix_spawn(FAR pid_t *pid, FAR const char *path,
    * for use within the OS.
    */
 
-  ret = nx_waitpid(proxy, &status, 0);
+  ret = nx_waitpid((pid_t)proxy, &status, 0);

Review comment:
       How about keeping `proxy` as `pid_t` and instead receive the return from 
`kthread_create` with the `ret` local?




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