]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
tvh_thread: do not print sid for non glibc binaries, fixes #5385
authorJaroslav Kysela <perex@perex.cz>
Sun, 2 Dec 2018 18:48:27 +0000 (19:48 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 2 Dec 2018 18:48:27 +0000 (19:48 +0100)
src/tvh_thread.c

index 5bebabd0591b434fd8a66412dfbd0e5b2dbc2fbc..a6b6e4f3798045c760098cfe7f62fc795f96c034 100644 (file)
@@ -380,7 +380,11 @@ static void tvh_thread_mutex_deadlock(tvh_mutex_t *mutex)
 {
   int fd = hts_settings_open_file(HTS_SETTINGS_OPEN_WRITE | HTS_SETTINGS_OPEN_DIRECT, "mutex-deadlock.txt");
   if (fd < 0) fd = fileno(stderr);
+#if __GLIBC__
   int sid = mutex->mutex.__data.__owner; /* unportable */
+#else
+  int sid = -1;
+#endif
   char name[256], *s;
   htsbuf_queue_t q;
   size_t l;