[rt-smart][fix/lwp] don't restore terminal for background lwp (#6847)

* [fix/lwp] don't restore term for background lwp
This commit is contained in:
Shell
2023-01-13 09:48:43 +08:00
committed by GitHub
parent 7b35c8d353
commit b2402029b2
7 changed files with 13 additions and 1 deletions

View File

@@ -1282,6 +1282,10 @@ pid_t lwp_execve(char *filename, int debug, int argc, char **argv, char **envp)
}
}
else
{
lwp->background = RT_TRUE;
}
thread->lwp = lwp;
#ifndef ARCH_MM_MMU
struct lwp_app_head *app_head = (struct lwp_app_head*)lwp->text_entry;