diff --git a/nshlib/nsh_builtin.c b/nshlib/nsh_builtin.c index 4d8736644..264979d04 100644 --- a/nshlib/nsh_builtin.c +++ b/nshlib/nsh_builtin.c @@ -135,9 +135,9 @@ int nsh_builtin(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd, { int rc = 0; - /* Setup up to receive SIGKILL if control-C entered. The return + /* Setup up to receive SIGINT if control-C entered. The return * value is ignored because this console device may not support - * SIGKILL. + * SIGINT. */ (void)ioctl(stdout->fs_fd, TIOCSCTTY, ret); diff --git a/nshlib/nsh_fileapps.c b/nshlib/nsh_fileapps.c index 868a26df2..4b1bcc3bd 100644 --- a/nshlib/nsh_fileapps.c +++ b/nshlib/nsh_fileapps.c @@ -172,9 +172,9 @@ int nsh_fileapp(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd, { int rc = 0; - /* Setup up to receive SIGKILL if control-C entered. The return + /* Setup up to receive SIGINT if control-C entered. The return * value is ignored because this console device may not support - * SIGKILL. + * SIGINT. */ (void)ioctl(stdout->fs_fd, TIOCSCTTY, pid); diff --git a/system/cu/cu_main.c b/system/cu/cu_main.c index 570654974..0aa9b1975 100644 --- a/system/cu/cu_main.c +++ b/system/cu/cu_main.c @@ -61,18 +61,6 @@ * Pre-processor Definitions ****************************************************************************/ -#ifndef SIGINT -# define SIGINT 2 -#endif - -#ifndef SIGKILL -# define SIGKILL 9 -#endif - -#ifndef SIGTERM -# define SIGTERM 15 -#endif - enum parity_mode { PARITY_NONE, @@ -297,8 +285,6 @@ int cu_main(int argc, FAR char *argv[]) memset(&sa, 0, sizeof(sa)); sa.sa_handler = sigint; sigaction(SIGINT, &sa, NULL); - sigaction(SIGTERM, &sa, NULL); - sigaction(SIGKILL, &sa, NULL); while ((option = getopt(argc, argv, "l:s:eor?")) != ERROR) {