Fix SIGTERM signal handling

asix uses the SIGTERM signal to rerun the simulation. Since SDL2
registers a signal handler, killing the old simulation does not have any
effect. The usual way to deal with that is to poll SDL events, but since
SDL is only used for audio here, a single line change does the job.
main
Clément FRÉVILLE 2 years ago
parent af38d52d98
commit fd3ab10e5b

@ -2,7 +2,7 @@
set -euo pipefail
declare -r VERSION='0.1.4-1'
declare -r VERSION='0.1.4-2'
declare -r ORIG_VERSION='0.1.4'
declare -r ORIG_FILE="asix_$ORIG_VERSION.orig.tar.gz"

12
debian/changelog vendored

@ -1,3 +1,9 @@
asix (0.1.4-2) jammy; urgency=low
* Handle SIGTERM signals
-- Clément Fréville <clement.freville2@etu.uca.fr> Sun, 14 May 2023 17:34:10 +0200
asix (0.1.4-1) jammy; urgency=medium
* Merge with source
@ -5,19 +11,19 @@ asix (0.1.4-1) jammy; urgency=medium
-- Clément Fréville <clement.freville2@etu.uca.fr> Sat, 06 May 2023 15:31:25 +0200
asix (1.1.3) jammy; urgency=low
asix (1.1.3-1) jammy; urgency=low
* Merge with source
-- Clément Fréville <clement.freville2@etu.uca.fr> Wed, 18 May 2022 17:16:51 +0200
asix (1.1.2) jammy; urgency=medium
asix (1.1.2-1) jammy; urgency=medium
* Merge with source
-- Clément Fréville <clement.freville2@etu.uca.fr> Tue, 17 May 2022 07:22:35 +0200
asix (1.1.1) jammy; urgency=medium
asix (1.1.1-1) jammy; urgency=medium
* Merge with source
* Add bash completion

@ -0,0 +1,12 @@
--- a/src/tone/tone.cpp
+++ b/src/tone/tone.cpp
@@ -248,7 +248,8 @@
void initTone() {
- if(SDL_Init( SDL_INIT_AUDIO ) < 0) {
+ SDL_SetHint(SDL_HINT_NO_SIGNAL_HANDLERS, "1");
+ if(SDL_Init( SDL_INIT_AUDIO ) < 0) {
printf("Erreur d'initialisation de la SDL : %s",SDL_GetError());//on affiche l'erreur
exit( EXIT_FAILURE);
}

@ -1,2 +1,3 @@
add-install-target.patch
fix-macro-conflict.patch
remove-sdl-signal-handler.patch

Loading…
Cancel
Save