From 189de8ed28c5539c68ae05a56205a8a6c4d3b76c Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 19 Mar 2025 08:33:18 -0400 Subject: [PATCH] MT#55283 check pthread_create return value Change-Id: Iecf0a650bcc6408677282660f0fcd409cd741626 Warned-by: Coverity --- recording-daemon/notify.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recording-daemon/notify.c b/recording-daemon/notify.c index d277d966e..a9764ce0d 100644 --- a/recording-daemon/notify.c +++ b/recording-daemon/notify.c @@ -257,7 +257,9 @@ void notify_setup(void) { notify_threadpool = g_thread_pool_new(do_notify, NULL, notify_threads, false, NULL); notify_timers = g_tree_new(notify_req_cmp); - pthread_create(¬ify_waiter, NULL, notify_timer, NULL); + int ret = pthread_create(¬ify_waiter, NULL, notify_timer, NULL); + if (ret) + ilog(LOG_ERR, "Failed to launch thread for HTTP notification"); } void notify_cleanup(void) {