binfmt/elf: Set priority level to default if parent has no priority.
This commit is contained in:
parent
1137927bd7
commit
f1b5a80ae9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user