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.
This commit is contained in:
12
debian/changelog
vendored
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
|
||||
|
12
debian/patches/remove-sdl-signal-handler.patch
vendored
Normal file
12
debian/patches/remove-sdl-signal-handler.patch
vendored
Normal file
@@ -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
debian/patches/series
vendored
1
debian/patches/series
vendored
@@ -1,2 +1,3 @@
|
||||
add-install-target.patch
|
||||
fix-macro-conflict.patch
|
||||
remove-sdl-signal-handler.patch
|
||||
|
Reference in New Issue
Block a user