aboutsummaryrefslogtreecommitdiff
path: root/ui/daemon/ui.c
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-04-16 03:18:10 +0200
committerPaul Oliver <contact@pauloliver.dev>2026-04-16 03:18:10 +0200
commit0f9e16add75e5d5de0463241120cf4584194b7e6 (patch)
treeab8625b7c0194788c6a749a43424cdea6981558b /ui/daemon/ui.c
parentd36b3f200dbaf19afd3b5e33f6a575961c471b72 (diff)
Makes event array compression multi-threaded
Diffstat (limited to 'ui/daemon/ui.c')
-rw-r--r--ui/daemon/ui.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/ui/daemon/ui.c b/ui/daemon/ui.c
index 3a4f5c2..269d5d7 100644
--- a/ui/daemon/ui.c
+++ b/ui/daemon/ui.c
@@ -76,21 +76,20 @@ void step_block(void) {
}
int main(void) {
+ g_running = true;
+ g_step_block = 1;
g_info = info_impl;
g_warn = warn_impl;
+ signal(SIGINT, sig_handler);
+ signal(SIGTERM, sig_handler);
+
#if defined(COMMAND_NEW)
salis_init();
#elif defined(COMMAND_LOAD)
salis_load();
#endif
- g_running = true;
- g_step_block = 1;
-
- signal(SIGINT, sig_handler);
- signal(SIGTERM, sig_handler);
-
while (g_running) {
step_block();
}