Bandaid fix to avoid unlocking a non-locked mutex.

PTHREAD_MUTEX_STRICT_NP is merciless ;-)
This commit is contained in:
dcoppa 2012-04-19 21:39:08 +00:00
parent c37807dc6b
commit dc08854ae2
2 changed files with 16 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.32 2012/04/16 13:09:26 dcoppa Exp $
# $OpenBSD: Makefile,v 1.33 2012/04/19 21:39:08 dcoppa Exp $
COMMENT = console client for pandora
DISTNAME = pianobar-2012.03.17
EXTRACT_SUFX = .tar.bz2
REVISION = 2
REVISION = 3
CATEGORIES = audio
MAINTAINER = David Coppa <dcoppa@openbsd.org>

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_ui_act_c,v 1.1 2012/04/19 21:39:08 dcoppa Exp $
Bandaid fix to avoid unlocking a non-locked mutex.
--- src/ui_act.c.orig Thu Apr 19 22:12:37 2012
+++ src/ui_act.c Thu Apr 19 22:14:18 2012
@@ -50,6 +50,7 @@ static inline void BarUiDoSkipSong (struct audioPlayer
assert (player != NULL);
player->doQuit = 1;
+ pthread_mutex_trylock (&player->pauseMutex);
pthread_mutex_unlock (&player->pauseMutex);
}