binfmt/exec: fix build break in kernel build
This commit is contained in:
parent
f7ef08cdc1
commit
a07ad7a115
1 changed files with 2 additions and 0 deletions
|
|
@ -139,10 +139,12 @@ int exec_spawn(FAR const char *filename, FAR char * const *argv,
|
|||
bin->priority = attr->priority;
|
||||
}
|
||||
|
||||
#ifndef CONFIG_BUILD_KERNEL
|
||||
if (attr->stacksize > 0)
|
||||
{
|
||||
bin->stacksize = attr->stacksize;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Disable pre-emption so that the executed module does
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue