summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-11-11 23:52:52 -0800
committerVito Caputo <vcaputo@pengaru.com>2020-11-12 23:14:10 -0800
commitcc41895fcc851ee96c457d566e5d987174f4d840 (patch)
tree263882605fed188a3733e805f424e66e33249f9d /src
parentc265f13978fbd68f295d99b2fe4720fe4866d64c (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/rmd_register_callbacks.c10
1 files changed, 3 insertions, 7 deletions
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)
© All Rights Reserved