mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-21 14:42:20 +08:00
nshlib/nsh_slcd.c: Use file descriptor zero for the NSH console.
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user