diff options
Diffstat (limited to 'src/utils/knotd/main.c')
-rw-r--r-- | src/utils/knotd/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/knotd/main.c b/src/utils/knotd/main.c index 55ac0f419..e96377b33 100644 --- a/src/utils/knotd/main.c +++ b/src/utils/knotd/main.c @@ -488,9 +488,9 @@ static void event_loop(server_t *server, const char *socket, bool daemonize, } if (sig_req_zones_reload && !sig_req_stop) { sig_req_zones_reload = false; - reload_t mode = server->catalog_upd_signal ? RELOAD_CATALOG : RELOAD_ZONES; + reload_t mode = ATOMIC_GET(server->catalog_upd_signal) ? RELOAD_CATALOG : RELOAD_ZONES; pthread_rwlock_wrlock(&server->ctl_lock); - server->catalog_upd_signal = false; + ATOMIC_SET(server->catalog_upd_signal, false); server_update_zones(conf(), server, mode); pthread_rwlock_unlock(&server->ctl_lock); } |