From c0f64622e4a39cf83266a1be2a7dfbcc0a1f7a39 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 30 Nov 2018 06:18:44 -0600 Subject: [PATCH] nshlib/nsh_slcd.c: Use file descriptor zero for the NSH console. --- nshlib/nsh_slcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nshlib/nsh_slcd.c b/nshlib/nsh_slcd.c index 5a73021fd..eb0e9de69 100644 --- a/nshlib/nsh_slcd.c +++ b/nshlib/nsh_slcd.c @@ -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 */