From 8f0da378b01b50812033595f1c6c4632f56800e7 Mon Sep 17 00:00:00 2001 From: klemek Date: Mon, 11 May 2026 07:40:34 +0200 Subject: [PATCH] fix: forks should exit --- src/midi.c | 5 ++--- src/state.c | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/midi.c b/src/midi.c index ff7dc7b..35be598 100644 --- a/src/midi.c +++ b/src/midi.c @@ -1,6 +1,5 @@ -#include #include -#include +#include #include "types.h" @@ -61,5 +60,5 @@ bool midi_background_listen(const MidiDevice *device, log_info("(%s) background acquisition stopped by main thread (pid: %d)", device->name, pid); - return false; + exit(EXIT_SUCCESS); } diff --git a/src/state.c b/src/state.c index 12cebfb..75e36a5 100644 --- a/src/state.c +++ b/src/state.c @@ -1,5 +1,6 @@ #include #include +#include #include "types.h" @@ -619,7 +620,7 @@ bool state_background_write(SharedContext *context, } log_info("(state) background writing stopped by main thread (pid: %d)", pid); - return false; + exit(EXIT_SUCCESS); } void state_init(SharedContext *context, const StateConfig *state_config,