Modified the "posix" ports to clear the automatic sig_act struct before use
This commit is contained in:
MMS 2021-06-29 12:22:20 -04:00
parent 41551f2540
commit 3c6202e50d
4 changed files with 12 additions and 9 deletions

View File

@ -1227,7 +1227,7 @@
/* Rule M6-4-5 (required, implementation, automated) */
/* 9090 - switch case lacks unconditional break or throw */
/* 9090 - switch case lacks unconditional break or throw */
+e9090
+elib(9090)
-append(9090,[AUTOSAR Rule M6-4-5])

View File

@ -3,8 +3,8 @@
/// @ingroup ports
/// @cond
///***************************************************************************
/// Last updated for version 6.9.2
/// Last updated on 2021-01-14
/// Last updated for version 6.9.4
/// Last updated on 2021-06-17
///
/// Q u a n t u m L e a P s
/// ------------------------
@ -184,6 +184,7 @@ bool QS::onStartup(void const *arg) {
onFlush();
// install the SIGINT (Ctrl-C) signal handler
memset(&sig_act, 0, sizeof(sig_act));
sig_act.sa_handler = &sigIntHandler;
sigaction(SIGINT, &sig_act, NULL);

View File

@ -2,14 +2,14 @@
/// @brief QF/C++ port to POSIX API (single-threaded, like QV kernel)
/// @cond
///***************************************************************************
/// Last updated for version 6.9.1
/// Last updated on 2020-09-21
/// Last updated for version 6.9.4
/// Last updated on 2021-06-17
///
/// Q u a n t u m L e a P s
/// ------------------------
/// Modern Embedded Software
///
/// Copyright (C) 2005-2020 Quantum Leaps. All rights reserved.
/// Copyright (C) 2005-2021 Quantum Leaps. All rights reserved.
///
/// This program is open source software: you can redistribute it and/or
/// modify it under the terms of the GNU General Public License as published
@ -97,6 +97,7 @@ void QF::init(void) {
// install the SIGINT (Ctrl-C) signal handler
struct sigaction sig_act;
memset(&sig_act, 0, sizeof(sig_act));
sig_act.sa_handler = &sigIntHandler;
sigaction(SIGINT, &sig_act, NULL);
}

View File

@ -2,14 +2,14 @@
/// @brief QF/C++ port to POSIX/P-threads
/// @cond
///***************************************************************************
/// Last updated for version 6.9.1
/// Last updated on 2020-09-21
/// Last updated for version 6.9.4
/// Last updated on 2021-06-17
///
/// Q u a n t u m L e a P s
/// ------------------------
/// Modern Embedded Software
///
/// Copyright (C) 2005-2020 Quantum Leaps. All rights reserved.
/// Copyright (C) 2005-2021 Quantum Leaps. All rights reserved.
///
/// This program is open source software: you can redistribute it and/or
/// modify it under the terms of the GNU General Public License as published
@ -100,6 +100,7 @@ void QF::init(void) {
// install the SIGINT (Ctrl-C) signal handler
struct sigaction sig_act;
memset(&sig_act, 0, sizeof(sig_act));
sig_act.sa_handler = &sigIntHandler;
sigaction(SIGINT, &sig_act, NULL);
}