mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-10-20 23:31:32 +02:00
- auth-load-thread, unit test that exercises the reload and exit auth load
thread administration.
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
diff --git a/services/authload.c b/services/authload.c
|
||||
index 314d1d40b..b0c7336ea 100644
|
||||
--- a/services/authload.c
|
||||
+++ b/services/authload.c
|
||||
@@ -709,6 +709,13 @@ auth_load_thread_process(struct auth_load_thread* thr)
|
||||
if(gettimeofday(&start, NULL) < 0)
|
||||
log_err("gettimeofday: %s", strerror(errno));
|
||||
|
||||
+ if(1) {
|
||||
+ struct timespec dur;
|
||||
+ dur.tv_sec = 1;
|
||||
+ dur.tv_nsec = 500ULL * 1000000ULL;
|
||||
+ nanosleep(&dur, NULL);
|
||||
+ }
|
||||
+
|
||||
/* apply data */
|
||||
if(task->task_type == AUTH_LOAD_TASK_ZONEFILE_WRITE) {
|
||||
if(!auth_load_process_write(thr))
|
||||
Reference in New Issue
Block a user