MT#55283 check pthread_create return value

Change-Id: Iecf0a650bcc6408677282660f0fcd409cd741626
Warned-by: Coverity
pull/1918/head
Richard Fuchs 1 year ago
parent af0b157821
commit 189de8ed28

@ -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(&notify_waiter, NULL, notify_timer, NULL);
int ret = pthread_create(&notify_waiter, NULL, notify_timer, NULL);
if (ret)
ilog(LOG_ERR, "Failed to launch thread for HTTP notification");
}
void notify_cleanup(void) {

Loading…
Cancel
Save