binfmt/elf: Set priority level to default if parent has no priority.

This commit is contained in:
anchao 2018-08-22 07:20:24 -06:00 committed by Gregory Nutt
parent 1137927bd7
commit f1b5a80ae9

View File

@ -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;
}