fix: forks should exit
This commit is contained in:
+2
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user