fix: forks should exit

This commit is contained in:
2026-05-11 07:40:34 +02:00
parent 7d03c9719e
commit 8f0da378b0
2 changed files with 4 additions and 4 deletions
+2 -3
View File
@@ -1,6 +1,5 @@
#include <GLFW/glfw3.h>
#include <alsa/asoundlib.h>
#include <bsd/string.h>
#include <stdlib.h>
#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);
}
+2 -1
View File
@@ -1,5 +1,6 @@
#include <log.h>
#include <stdio.h>
#include <stdlib.h>
#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,