From c73aab039e232e7b57ad7d8518c052ad5654d8bd Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 2 Oct 2023 04:15:59 +0200 Subject: move signal-unsafe functions out of signal handlers A signal interrupts the blocking function calls in the main iteration, so there is really no need to do (unsafe) heavy lifting in the signal handler. Closes #705 --- src/signals.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/signals.h') diff --git a/src/signals.h b/src/signals.h index 56e9ce6..505a071 100644 --- a/src/signals.h +++ b/src/signals.h @@ -28,4 +28,5 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. void setup_signal_handlers(void); extern volatile int sig_exit; +extern volatile int sig_received; #endif -- cgit v1.2.3