Module Name: src
Committed By: pooka
Date: Fri Feb 28 13:55:36 UTC 2014
Modified Files:
src/lib/librumpuser: rumpuser_sp.c
Log Message:
Fix locking SNAFU.
Is someone can explain why the code worked for 3+ years with multiple
different pthread implementations, I'll buy you a banana.
To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/lib/librumpuser/rumpuser_sp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/librumpuser/rumpuser_sp.c
diff -u src/lib/librumpuser/rumpuser_sp.c:1.62 src/lib/librumpuser/rumpuser_sp.c:1.63
--- src/lib/librumpuser/rumpuser_sp.c:1.62 Wed Jan 8 01:45:29 2014
+++ src/lib/librumpuser/rumpuser_sp.c Fri Feb 28 13:55:36 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser_sp.c,v 1.62 2014/01/08 01:45:29 pooka Exp $ */
+/* $NetBSD: rumpuser_sp.c,v 1.63 2014/02/28 13:55:36 pooka Exp $ */
/*
* Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved.
@@ -37,7 +37,7 @@
#include "rumpuser_port.h"
#if !defined(lint)
-__RCSID("$NetBSD: rumpuser_sp.c,v 1.62 2014/01/08 01:45:29 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_sp.c,v 1.63 2014/02/28 13:55:36 pooka Exp $");
#endif /* !lint */
#include <sys/types.h>
@@ -1021,7 +1021,7 @@ handlereq(struct spclient *spc)
break;
}
}
- pthread_mutex_lock(&pfmtx);
+ pthread_mutex_unlock(&pfmtx);
spcfreebuf(spc);
if (!pf) {