mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-12 05:34:01 -04:00
log: set syslog facility to LOG_DAEMON when run in server mode
This commit is contained in:
parent
4f4ee5b39d
commit
55a23a5b29
3 changed files with 17 additions and 5 deletions
3
main.c
3
main.c
|
|
@ -190,6 +190,8 @@ main(int argc, char *const *argv)
|
|||
struct server *server = NULL;
|
||||
struct shutdown_context shutdown_ctx = {.term = &term, .exit_code = EXIT_FAILURE};
|
||||
|
||||
log_init(as_server ? LOG_FACILITY_DAEMON : LOG_FACILITY_USER);
|
||||
|
||||
/* This ensures we keep a set of fonts in the cache */
|
||||
if (!initialize_fonts(&conf, fonts))
|
||||
goto out;
|
||||
|
|
@ -241,5 +243,6 @@ out:
|
|||
font_destroy(fonts[i]);
|
||||
|
||||
config_free(conf);
|
||||
log_deinit();
|
||||
return ret == EXIT_SUCCESS && !as_server ? shutdown_ctx.exit_code : ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue