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 -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,