# HG changeset patch # User Olaf Wintermann # Date 1667407659 -3600 # Node ID 56edda8701e0b3ce62c61065b45e5804fad5d2b3 # Parent 78af44222463fb8f1d6ceab56292e2a2564848fe replace perror() messages with log_ereport in thrpool.c diff -r 78af44222463 -r 56edda8701e0 src/server/util/thrpool.c --- a/src/server/util/thrpool.c Tue Nov 01 20:46:15 2022 +0100 +++ b/src/server/util/thrpool.c Wed Nov 02 17:47:39 2022 +0100 @@ -57,7 +57,7 @@ for(int i=0;imin_threads;i++) { pthread_t t; if (pthread_create(&t, NULL, threadpool_func, pool) != 0) { - perror("Error: threadpool_start: pthread_create"); + log_ereport(LOG_FAILURE, "threadpool_start: pthread_create failed: %s", strerror(errno)); return 1; } } @@ -135,7 +135,7 @@ if(create_thread) { pthread_t t; if (pthread_create(&t, NULL, threadpool_func, pool) != 0) { - perror("Error: threadpool_run: pthread_create"); + log_ereport(LOG_FAILURE, "threadpool_run: pthread_create failed: %s", strerror(errno)); } } if(destroy_thread) {