From cc41895fcc851ee96c457d566e5d987174f4d840 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 11 Nov 2020 23:52:52 -0800 Subject: register_callbacks: permit paused quit and abort Not sure why the inherited code prohibited this, but it doesn't jive with my expectations to ignore SIGINT just because the recording is paused. --- src/rmd_register_callbacks.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/rmd_register_callbacks.c b/src/rmd_register_callbacks.c index a359297..5ef8596 100644 --- a/src/rmd_register_callbacks.c +++ b/src/rmd_register_callbacks.c @@ -47,14 +47,10 @@ static void rmdSetPaused(int signum) static void rmdSetRunning(int signum) { - if (!*pdata_paused) { + *pdata_running = FALSE; - *pdata_running = FALSE; - - if (signum == SIGABRT) { - *pdata_aborted = TRUE; - } - } + if (signum == SIGABRT) + *pdata_aborted = TRUE; } void rmdRegisterCallbacks(ProgData *pdata) -- cgit v1.2.3