You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/09/12 03:37:02 UTC

[incubator-nuttx-apps] branch master updated: nsh: fix compile break about closing CONFIG_NSH_DISABLEBG

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 16c9068  nsh: fix compile break about closing CONFIG_NSH_DISABLEBG
16c9068 is described below

commit 16c9068d5fcba68849b6ae227aa154bf49d0f200
Author: Jiuzhu Dong <do...@xiaomi.com>
AuthorDate: Fri Sep 10 22:28:15 2021 +0800

    nsh: fix compile break about closing CONFIG_NSH_DISABLEBG
    
    Signed-off-by: Jiuzhu Dong <do...@xiaomi.com>
---
 nshlib/nsh_builtin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nshlib/nsh_builtin.c b/nshlib/nsh_builtin.c
index f5337f7..01839f5 100644
--- a/nshlib/nsh_builtin.c
+++ b/nshlib/nsh_builtin.c
@@ -224,7 +224,7 @@ int nsh_builtin(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
 
 #if !defined(CONFIG_SCHED_WAITPID) || !defined(CONFIG_NSH_DISABLEBG)
         {
-#  ifdef CONFIG_SCHED_CHILD_STATUS
+#if !defined(CONFIG_NSH_DISABLEBG) && defined(CONFIG_SCHED_CHILD_STATUS)
 
           /* Restore the old actions */