royzah commented on code in PR #20425:
URL: https://github.com/apache/nuttx/pull/20425#discussion_r4161640315


##########
sched/task/task_create.c:
##########
@@ -208,6 +208,12 @@ int task_create_with_stack(FAR const char *name, int 
priority,
 {
   int ret;
 
+  if (!nxsched_capable(PR_CAP_SPAWN))

Review Comment:
   Moved into nxtask_create(). Not nxthread_create() since kthread_create() 
goes through it too



##########
sched/task/task_spawn.c:
##########
@@ -339,6 +339,11 @@ int task_spawn(FAR const char *name, main_t entry,
   pid_t pid = INVALID_PROCESS_ID;
   int ret;
 
+  if (!nxsched_capable(PR_CAP_SPAWN))

Review Comment:
   Moved into nxtask_spawn_create(), wrapper check gone. posix_spawn() lost its 
own check too, it reaches exec_internal()



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