diff options
| author | Paul Oliver <contact@pauloliver.dev> | 2026-04-16 03:18:10 +0200 |
|---|---|---|
| committer | Paul Oliver <contact@pauloliver.dev> | 2026-04-16 03:18:10 +0200 |
| commit | 0f9e16add75e5d5de0463241120cf4584194b7e6 (patch) | |
| tree | ab8625b7c0194788c6a749a43424cdea6981558b /ui/daemon/ui.c | |
| parent | d36b3f200dbaf19afd3b5e33f6a575961c471b72 (diff) | |
Makes event array compression multi-threaded
Diffstat (limited to 'ui/daemon/ui.c')
| -rw-r--r-- | ui/daemon/ui.c | 11 |
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(); } |
