From 667501a314ba75f80f1c13c6b43dd35d0a00efd1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 2 Oct 2019 16:49:00 -0500 Subject: termios: Add Capability to Generate SIGINTR and SIGQUIT This patch adds the ability for termios to send SIGINTR on receipt of VINTR and SIGQUIT for VKILL and return -1/EINTR from read() on a termios channel. Importantly, this patch does not alter the default behavior or force POSIX signal code in just because termios is used. The application must explicitly enable the POSIX behavior of generating a signal upon receipt of these characters. This is discussed in the POSIX standard: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap11.html Closes #3800. --- testsuites/libtests/termios11/termios11.doc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 testsuites/libtests/termios11/termios11.doc (limited to 'testsuites/libtests/termios11/termios11.doc') diff --git a/testsuites/libtests/termios11/termios11.doc b/testsuites/libtests/termios11/termios11.doc new file mode 100644 index 0000000000..c98e5ca8b1 --- /dev/null +++ b/testsuites/libtests/termios11/termios11.doc @@ -0,0 +1,23 @@ +# COPYRIGHT (c) 2019. +# On-Line Applications Research Corporation (OAR). +# +# SPDX-License-Identifier: BSD-2-Clause +# + +test name: termios10 + +directives: + rtems_termios_register_isig_handler + +concepts: + ++ Verifies signals are not delivered on QUIT and INTR characters + as default behavior. + ++ Verified that signals are delivered when QUIT or INTR characters + are entered after rtems_termios_posix_isig_handler() + is registered using rtems_termios_register_isig_handler(). + ++ Verifies signals are not delivered on QUIT and INTR characters + after the default handler rtems_termios_default_isig_handler() + is registered using rtems_termios_register_isig_handler(). -- cgit v1.2.3