mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 18:58:27 +08:00
binfmt/elf: Set priority level to default if parent has no priority.
This commit is contained in:
@@ -87,6 +87,11 @@ static int load_default_priority(FAR struct binary_s *bin)
|
||||
/* Save that as the priority of child thread */
|
||||
|
||||
bin->priority = param.sched_priority;
|
||||
if (bin->priority <= 0)
|
||||
{
|
||||
bin->priority = SCHED_PRIORITY_DEFAULT;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user