nshlib: Add login argument to nsh_session for controling the login process

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-04-18 23:53:32 +08:00
committed by patacongo
parent 7b4d34e352
commit 9ab5e2ff45
6 changed files with 43 additions and 37 deletions

View File

@@ -339,7 +339,7 @@ int nsh_consolemain(int argc, char *argv[])
/* Execute the session */
nsh_session(pstate);
nsh_session(pstate, true);
/* Switch to /dev/null because we probably no longer have a
* valid console device.