View | Details | Raw Unified | Return to bug 233229
Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	unbound
4
PORTNAME=	unbound
5
PORTVERSION=	1.8.1
5
PORTVERSION=	1.8.1
6
PORTREVISION=	1
6
CATEGORIES=	dns
7
CATEGORIES=	dns
7
MASTER_SITES=	https://www.nlnetlabs.nl/downloads/unbound/ \
8
MASTER_SITES=	https://www.nlnetlabs.nl/downloads/unbound/ \
8
		https://distfiles.crux.guru/
9
		https://distfiles.crux.guru/
(-)files/patch-daemon_worker.c (+19 lines)
Line 0 Link Here
1
--- daemon/worker.c.orig	2018-11-22 15:35:31 UTC
2
+++ daemon/worker.c
3
@@ -1802,8 +1802,6 @@ worker_init(struct worker* worker, struc
4
 	alloc_set_id_cleanup(&worker->alloc, &worker_alloc_cleanup, worker);
5
 	worker->env = *worker->daemon->env;
6
 	comm_base_timept(worker->base, &worker->env.now, &worker->env.now_tv);
7
-	if(worker->thread_num == 0)
8
-		log_set_time(worker->env.now);
9
 	worker->env.worker = worker;
10
 	worker->env.worker_base = worker->base;
11
 	worker->env.send_query = &worker_send_query;
12
@@ -1909,7 +1907,6 @@ worker_delete(struct worker* worker)
13
 	comm_timer_delete(worker->env.probe_timer);
14
 	free(worker->ports);
15
 	if(worker->thread_num == 0) {
16
-		log_set_time(NULL);
17
 #ifdef UB_ON_WINDOWS
18
 		wsvc_desetup_worker(worker);
19
 #endif /* UB_ON_WINDOWS */
(-)files/patch-util_log.c (+34 lines)
Line 0 Link Here
1
--- util/log.c.orig	2018-11-22 15:37:33 UTC
2
+++ util/log.c
3
@@ -78,8 +78,6 @@ static const char* ident="unbound";
4
 /** are we using syslog(3) to log to */
5
 static int logging_to_syslog = 0;
6
 #endif /* HAVE_SYSLOG_H */
7
-/** time to print in log, if NULL, use time(2) */
8
-static time_t* log_now = NULL;
9
 /** print time in UTC or in secondsfrom1970 */
10
 static int log_time_asc = 0;
11
 
12
@@ -181,11 +179,6 @@ void log_ident_set(const char* id)
13
 	ident = id;
14
 }
15
 
16
-void log_set_time(time_t* t)
17
-{
18
-	log_now = t;
19
-}
20
-
21
 void log_set_time_asc(int use_asc)
22
 {
23
 	log_time_asc = use_asc;
24
@@ -255,9 +248,7 @@ log_vmsg(int pri, const char* type,
25
 		lock_quick_unlock(&log_lock);
26
 		return;
27
 	}
28
-	if(log_now)
29
-		now = (time_t)*log_now;
30
-	else	now = (time_t)time(NULL);
31
+	now = (time_t)time(NULL);
32
 #if defined(HAVE_STRFTIME) && defined(HAVE_LOCALTIME_R) 
33
 	if(log_time_asc && strftime(tmbuf, sizeof(tmbuf), "%b %d %H:%M:%S",
34
 		localtime_r(&now, &tm))%(sizeof(tmbuf)) != 0) {
(-)files/patch-util_log.h (+16 lines)
Line 0 Link Here
1
--- util/log.h.orig	2018-11-22 15:40:08 UTC
2
+++ util/log.h
3
@@ -113,13 +113,6 @@ int log_thread_get(void);
4
 void log_ident_set(const char* id);
5
 
6
 /**
7
- * Set the time value to print in log entries.
8
- * @param t: the point is copied and used to find the time.
9
- * 	if NULL, time(2) is used.
10
- */
11
-void log_set_time(time_t* t);
12
-
13
-/**
14
  * Set if the time value is printed ascii or decimal in log entries.
15
  * @param use_asc: if true, ascii is printed, otherwise decimal.
16
  *	If the conversion fails or you have no time functions, 

Return to bug 233229