From: Jaroslav Kysela Date: Wed, 28 Nov 2018 12:21:06 +0000 (+0100) Subject: watchdog: fix missing pthread_mutex_destroy -> tvh_mutex_destroy, issue #5361 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c075732a1005d2ace11cb3c8addce262d6858759;p=thirdparty%2Ftvheadend.git watchdog: fix missing pthread_mutex_destroy -> tvh_mutex_destroy, issue #5361 --- diff --git a/src/watchdog.c b/src/watchdog.c index 62c8a8222..47143950d 100644 --- a/src/watchdog.c +++ b/src/watchdog.c @@ -71,7 +71,7 @@ void watchdog_init(void) watchdog_exiting = 0; tvh_cond_init(&watchdog_exiting_cond, 1); - pthread_mutex_init(&watchdog_exiting_mutex, NULL); + tv_mutex_init(&watchdog_exiting_mutex, NULL); tvh_thread_create(&watchdog_tid, NULL, watchdog_thread, NULL, "systemd watchdog"); } @@ -88,6 +88,6 @@ void watchdog_done(void) pthread_join(watchdog_tid, NULL); tvh_cond_destroy(&watchdog_exiting_cond); - pthread_mutex_destroy(&watchdog_exiting_mutex); + tvh_mutex_destroy(&watchdog_exiting_mutex); } }