Просмотр исходного кода

totempg: Suppress coverity sleep error

Sleep while holding mutex is really not a problem because
corosync is single threaded and this part is shutdown sequence
so wait is ok. Add coverity specific comment
to suppress this error.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
Jan Friesse 6 месяцев назад
Родитель
Сommit
63ed602a78
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      exec/totempg.c

+ 1 - 0
exec/totempg.c

@@ -857,6 +857,7 @@ void totempg_finalize (void)
 	if (totempg_threaded_mode == 1) {
 		pthread_mutex_lock (&totempg_mutex);
 	}
+	// coverity[SLEEP:SUPPRESS] sleep is not a problem because it is shutdown
 	totemsrp_finalize (totemsrp_context);
 	if (totempg_threaded_mode == 1) {
 		pthread_mutex_unlock (&totempg_mutex);