mirror of
https://github.com/QuantumLeaps/qpcpp.git
synced 2025-01-14 05:42:57 +08:00
6.9.3a
Modified the "posix" ports to clear the automatic sig_act struct before use
This commit is contained in:
parent
41551f2540
commit
3c6202e50d
@ -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])
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user