nshlib/nsh_slcd.c: Use file descriptor zero for the NSH console.

This commit is contained in:
Gregory Nutt 2018-11-30 06:18:44 -06:00
parent c21d640eaf
commit c0f64622e4

View File

@ -93,7 +93,7 @@ static int nsh_clone_console(FAR struct console_stdio_s *pstate)
/* Use /dev/console as console input */
pstate->cn_confd = fd;
pstate->cn_confd = 0;
/* Create a standard C stream on the console device */