binfmt/elf: Set priority level to default if parent has no priority.
This commit is contained in:
parent
1137927bd7
commit
f1b5a80ae9
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue