You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/02/10 15:21:44 UTC

[incubator-nuttx] branch master updated: drivers/telnet: Stop the loop if SIGSTP char is match and SIGINT not enabled

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

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


The following commit(s) were added to refs/heads/master by this push:
     new d68693f  drivers/telnet: Stop the loop if SIGSTP char is match and SIGINT not enabled
d68693f is described below

commit d68693f74c066083c68a9f378f81986950a9b0f6
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Feb 10 23:05:17 2020 +0800

    drivers/telnet: Stop the loop if SIGSTP char is match and SIGINT not enabled
    
    Change-Id: I78510616e68330b0171230ca0e081c0d702a6f42
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 drivers/net/telnet.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/telnet.c b/drivers/net/telnet.c
index 29ce4cd..56a90a5 100644
--- a/drivers/net/telnet.c
+++ b/drivers/net/telnet.c
@@ -318,6 +318,9 @@ static void telnet_check_ctrlchar(FAR struct telnet_dev_s *priv,
            */
 
           signo = SIGSTP;
+#ifndef CONFIG_TTY_SIGINT
+          break;
+#endif
         }
 #endif
     }