mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
task_spawnparms: out of loop when ret less than 0
The nxspawn_dup2 function will return a value greater than 0, so the loop should only exit if ret is less than 0. Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
@@ -274,7 +274,7 @@ int spawn_file_actions(FAR struct tcb_s *tcb,
|
||||
/* Execute each file action */
|
||||
|
||||
for (entry = (FAR struct spawn_general_file_action_s *)actions;
|
||||
entry && ret == OK;
|
||||
entry && ret >= 0;
|
||||
entry = entry->flink)
|
||||
{
|
||||
switch (entry->action)
|
||||
|
||||
Reference in New Issue
Block a user