projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
c99e382
)
Holding a mutex then croak()ing strikes me as deadlock.
Nicholas Clark [Sat, 17 Sep 2005 18:05:30 +0000 (18:05 +0000)]
p4raw-id: //depot/perl@25442
ext/threads/threads.xs
patch
|
blob
|
blame
|
history
diff --git
a/ext/threads/threads.xs
b/ext/threads/threads.xs
index
d80f093
..
272a2a6
100755
(executable)
--- a/
ext/threads/threads.xs
+++ b/
ext/threads/threads.xs
@@
-96,6
+96,7
@@
Perl_ithread_destruct (pTHX_ ithread* thread, const char *why)
PerlInterpreter *freeperl = NULL;
MUTEX_LOCK(&thread->mutex);
if (!thread->next) {
+ MUTEX_UNLOCK(&thread->mutex);
Perl_croak(aTHX_ "panic: destruct destroyed thread %p (%s)",thread, why);
}
if (thread->count != 0) {