yangyalei commented on code in PR #10380:
URL: https://github.com/apache/nuttx/pull/10380#discussion_r1310120870
##########
binfmt/binfmt_execmodule.c:
##########
@@ -292,6 +368,11 @@ int exec_module(FAR struct binary_s *binp,
}
#endif
+ if (exec_inner)
+ {
+ exchange_pid(this_task(), (FAR struct tcb_s *)tcb);
Review Comment:
It is not suitable to use task_reparent here. We only need to replace the
vforked task and spawned task pid. After replacement, the spawned task is the
child process of the task who called vfork.
--
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]