diff options
author | Yorhel <git@yorhel.nl> | 2022-05-27 14:53:37 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2022-05-27 14:53:39 +0200 |
commit | d24cda741beea16013df36b099b46bc2e87e77a0 (patch) | |
tree | ac0d6d8a7157c7446a086eeeb2250fe6f512962f | |
parent | e9e40e1827adccab838724b182c1f7bf679a5d5c (diff) |
Re-open GeoIP databases on SIGUSR1
So that they can be updated without restarting ncdc.
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -342,6 +342,7 @@ static gboolean sighandle_sourcefunc(gpointer dat) { } if(main_sig_log) { logfile_global_reopen(); + geoip_reinit(); main_sig_log = FALSE; } return TRUE; @@ -429,8 +430,7 @@ int main(int argc, char **argv) { dl_init_global(); ui_cmdhist_init("history"); ui_init(bracketed_paste); - geoip_reinit(4); - geoip_reinit(6); + geoip_reinit(); // setup SIGWINCH struct sigaction act; |