From e874e54835596571d453de393b805d4d8aa62925 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Sat, 11 Jan 2014 01:22:51 +0000 Subject: [PATCH] main: fix stupid error of moving the initial lock of global_lock --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index cc3c9b11..322a2517 100644 --- a/src/main.c +++ b/src/main.c @@ -429,7 +429,6 @@ main(int argc, char **argv) pthread_mutex_init(&fork_lock, NULL); pthread_mutex_init(&global_lock, NULL); pthread_mutex_init(&atomic_lock, NULL); - pthread_mutex_lock(&global_lock); pthread_cond_init(>imer_cond, NULL); /* Defaults */ @@ -719,6 +718,7 @@ main(int argc, char **argv) hts_settings_init(opt_config); /* Initialise clock */ + pthread_mutex_lock(&global_lock); time(&dispatch_clock); /* Signal handling */