]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
watchdog: fix missing pthread_mutex_destroy -> tvh_mutex_destroy, issue #5361
authorJaroslav Kysela <perex@perex.cz>
Wed, 28 Nov 2018 12:21:06 +0000 (13:21 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 28 Nov 2018 12:21:06 +0000 (13:21 +0100)
src/watchdog.c

index 62c8a8222b0b1c49185122d83e393e6c3c62a4c6..47143950d25fa016b0618a90a3cca867242b6cb2 100644 (file)
@@ -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);
   }
 }