Browse Source

MT#55283 check pthread_create return value

Change-Id: Iecf0a650bcc6408677282660f0fcd409cd741626
Warned-by: Coverity
pull/1918/head
Richard Fuchs 9 months ago
parent
commit
189de8ed28
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      recording-daemon/notify.c

+ 3
- 1
recording-daemon/notify.c View File

@ -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