X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Funixsock.c;h=2c1665fc9fcbbdffc3c91935838a720e4fbf6d6f;hb=dbf45dbf4eab1d058c49fc3bfb8be3e2cba98234;hp=0dc7d659400193a8bf29fc0ab3f78a9556826a90;hpb=d6021a800b12c89b5a78877af2c5b9abc1a8e609;p=collectd.git diff --git a/src/unixsock.c b/src/unixsock.c index 0dc7d659..2c1665fc 100644 --- a/src/unixsock.c +++ b/src/unixsock.c @@ -363,7 +363,8 @@ static void *us_server_thread (void __attribute__((unused)) *arg) DEBUG ("Spawning child to handle connection on fd #%i", *remote_fd); - status = pthread_create (&th, &th_attr, us_handle_client, (void *) remote_fd); + status = plugin_thread_create (&th, &th_attr, + us_handle_client, (void *) remote_fd); if (status != 0) { char errbuf[1024]; @@ -443,7 +444,8 @@ static int us_init (void) loop = 1; - status = pthread_create (&listen_thread, NULL, us_server_thread, NULL); + status = plugin_thread_create (&listen_thread, NULL, + us_server_thread, NULL); if (status != 0) { char errbuf[1024];