projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-5.4' into collectd-5.5
[collectd.git]
/
src
/
perl.c
diff --git
a/src/perl.c
b/src/perl.c
index
0a166a1
..
19ac08d
100644
(file)
--- a/
src/perl.c
+++ b/
src/perl.c
@@
-1208,7
+1208,10
@@
static void c_ithread_destructor (void *arg)
/* the ithread no longer exists */
if (NULL == t)
/* the ithread no longer exists */
if (NULL == t)
+ {
+ pthread_mutex_unlock (&perl_threads->mutex);
return;
return;
+ }
c_ithread_destroy (ithread);
c_ithread_destroy (ithread);
@@
-2082,7
+2085,7
@@
static int perl_shutdown (void)
return 0;
if (NULL == aTHX) {
return 0;
if (NULL == aTHX) {
-
c_ithread_t *
t = NULL;
+ t = NULL;
pthread_mutex_lock (&perl_threads->mutex);
t = c_ithread_create (perl_threads->head->interp);
pthread_mutex_lock (&perl_threads->mutex);
t = c_ithread_create (perl_threads->head->interp);