[rtems commit] termios: Add Capability to Generate SIGINTR and SIGQUIT

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Nov 12 08:35:17 UTC 2019


On 09/10/2019 21:34, Joel Sherrill wrote:
> Module:    rtems
> Branch:    master
> Commit:    667501a314ba75f80f1c13c6b43dd35d0a00efd1
> Changeset: http://git.rtems.org/rtems/commit/?id=667501a314ba75f80f1c13c6b43dd35d0a00efd1
> 
> Author:    Joel Sherrill <joel at rtems.org>
> Date:      Wed Oct  2 16:49:00 2019 -0500
> 
> 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.

This commit breaks the termios09 test:

sparc-rtems5-sis -nouartrx -r -tlim 600 s termios09.exe

  SIS - SPARC/RISCV instruction simulator 2.19,  copyright Jiri Gaisler 2019
  Bug-reports to jiri at gaisler.se

  ERC32 emulation enabled

  Loaded termios09.exe, entry 0x02000000


*** BEGIN OF TEST TERMIOS 9 ***
*** TEST VERSION: 5.0.0.667501a314ba75f80f1c13c6b43dd35d0a00efd1
*** TEST STATE: EXPECTED-PASS
*** TEST BUILD: RTEMS_NETWORKING RTEMS_POSIX_API RTEMS_SMP
*** TEST TOOLS: 7.4.1 20190514 (RTEMS 5, RSB 
a50f0c044ad732db728cc942d5fde82a1faf1d12, Newlib d14714c69)
/home/EB/sebastian_h/git-rtems-5/c/src/../../testsuites/libtests/termios09/init.c: 
542 n == 2

*** FATAL ***
fatal source: 5 (RTEMS_FATAL_SOURCE_EXIT)
fatal code: 0 (0x00000000)
RTEMS version: 5.0.0.667501a314ba75f80f1c13c6b43dd35d0a00efd1
RTEMS tools: 7.4.1 20190514 (RTEMS 5, RSB 
a50f0c044ad732db728cc942d5fde82a1faf1d12, Newlib d14714c69)
executing thread ID: 0x08a010001
executing thread name: UI1
cpu 0 in error mode (tt = 0x101)
    258062  02015fc0:  91d02000   ta  0x0

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the devel mailing list