From 4249a20d130262bc9b5e562fc73b712ce072b0b7 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 13 Aug 2013 16:51:16 +0200 Subject: [SERVER] Fix race condition in uplink request aggregation, other small improvements and debugging features --- src/server/locks.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/server/locks.c') diff --git a/src/server/locks.c b/src/server/locks.c index ce29b9a..413d317 100644 --- a/src/server/locks.c +++ b/src/server/locks.c @@ -16,6 +16,7 @@ #include #include "globals.h" #include "memlog.h" +#include "helper.h" #define MAXLOCKS 500 #define MAXTHREADS 500 @@ -254,6 +255,7 @@ void debug_dump_lock_stats() static void *debug_thread_watchdog(void *something) { + setThreadName("debug-watchdog"); while ( !_shutdown ) { if ( init_done ) { time_t now = time( NULL ); -- cgit v1.2.3-55-g7522