update apps/shell/src/shmsg.c.

This commit is contained in:
冷钦街 2021-02-05 15:04:36 +08:00 committed by Gitee
parent 71144b4a1e
commit b527fded62
1 changed files with 1 additions and 1 deletions

View File

@ -566,7 +566,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)