summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2894b59)
raw | patch | inline | side by side (parent: 2894b59)
author | Pavel Rochnyack <pavel2000@ngs.ru> | |
Sat, 14 May 2016 21:42:28 +0000 (03:42 +0600) | ||
committer | Pavel Rochnyack <pavel2000@ngs.ru> | |
Fri, 16 Sep 2016 04:46:26 +0000 (10:46 +0600) |
src/perl.c | patch | blob | history |
diff --git a/src/perl.c b/src/perl.c
index 04745c85ea8ef54c775802d1c4d2f0a4cf61dd0c..1dd57a2beb134207663d23994cf3f878626318f9 100644 (file)
--- a/src/perl.c
+++ b/src/perl.c
assert (NULL != perl_threads);
PERL_SET_CONTEXT (aTHX);
+ /* Mark as running to avoid deadlock:
+ c_ithread_destroy -> log_debug -> perl_log()
+ */
+ ithread->running = 1;
log_debug ("Shutting down Perl interpreter %p...", aTHX);
#if COLLECT_DEBUG
pthread_kill (thr->pthread, SIGTERM);
ERROR ("perl shutdown: Thread hangs inside Perl. Thread killed.");
}
- /* Mark as running to avoid deadlock:
- c_ithread_destroy -> log_debug -> perl_log()
- */
- thr->running = 1;
c_ithread_destroy (thr);
}