summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2022-05-27 14:53:37 +0200
committerYorhel <git@yorhel.nl>2022-05-27 14:53:39 +0200
commitd24cda741beea16013df36b099b46bc2e87e77a0 (patch)
treeac0d6d8a7157c7446a086eeeb2250fe6f512962f
parente9e40e1827adccab838724b182c1f7bf679a5d5c (diff)
Re-open GeoIP databases on SIGUSR1
So that they can be updated without restarting ncdc.
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 9bb9734..2912347 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;