aboutsummaryrefslogtreecommitdiff
path: root/ui/daemon/ui.c
diff options
context:
space:
mode:
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();
}