Code

Merge remote-tracking branch 'github/pr/387'
[collectd.git] / src / python.c
index 0fb49d4caa95b737f90afb8ff08cedfbc3282003..10ac8f0d149f815fa9d00e54bdda3e0123246029 100644 (file)
@@ -933,7 +933,7 @@ static int cpy_init(void) {
        pthread_sigmask(SIG_BLOCK, &sigset, NULL);
        state = PyEval_SaveThread();
        if (do_interactive) {
-               if (pthread_create(&thread, NULL, cpy_interactive, NULL)) {
+               if (plugin_thread_create(&thread, NULL, cpy_interactive, NULL)) {
                        ERROR("python: Error creating thread for interactive interpreter.");
                }
        }