!68 【轻量级 PR】:update apps/shell/src/shmsg.c.

Merge pull request !68 from 冷钦街/N/A
This commit is contained in:
openharmony_ci 2021-03-19 19:06:26 +08:00 committed by Gitee
commit f890dc8473
1 changed files with 1 additions and 1 deletions

View File

@ -577,7 +577,7 @@ int ShellTaskInit(ShellCB *shellCB)
static int ShellKernelReg(unsigned int shellHandle)
{
return ioctl(0, CONSOLE_CONTROL_REG_USERTASK, shellHandle);
return ioctl(STDIN_FILENO, CONSOLE_CONTROL_REG_USERTASK, shellHandle);
}
void *ShellEntry(void *argv)