X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fpython.c;h=ec2317b3721d00149e68fdc1567f59340da2cf99;hb=8422e7e438bf34c075af3b1b6380fe8c1fb82bf9;hp=27a1b25c4e1ecd14890cf6f81d8de7069ed26b81;hpb=46a35862cb9ff3caddad1fc01e02141b6e0a9f72;p=collectd.git diff --git a/src/python.c b/src/python.c index 27a1b25c..ec2317b3 100644 --- a/src/python.c +++ b/src/python.c @@ -1025,7 +1025,8 @@ static int cpy_init(void) { if (plugin_thread_create(&thread, NULL, cpy_interactive, pipefd + 1)) { ERROR("python: Error creating thread for interactive interpreter."); } - (void)read(pipefd[0], &buf, 1); + if(read(pipefd[0], &buf, 1)) + ; (void)close(pipefd[0]); } else { PyEval_InitThreads();