diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-11-11 23:52:52 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-11-12 23:14:10 -0800 |
commit | cc41895fcc851ee96c457d566e5d987174f4d840 (patch) | |
tree | 263882605fed188a3733e805f424e66e33249f9d | |
parent | c265f13978fbd68f295d99b2fe4720fe4866d64c (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.
-rw-r--r-- | src/rmd_register_callbacks.c | 10 |
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) |