Blame SOURCES/0020-RHBZ-907360-static-pthread-init.patch

671555
---
671555
 libmultipath/uevent.c |   12 ++++--------
671555
 1 file changed, 4 insertions(+), 8 deletions(-)
671555
671555
Index: multipath-tools-130222/libmultipath/uevent.c
671555
===================================================================
671555
--- multipath-tools-130222.orig/libmultipath/uevent.c
671555
+++ multipath-tools-130222/libmultipath/uevent.c
671555
@@ -53,8 +53,10 @@ typedef int (uev_trigger)(struct uevent
671555
 
671555
 pthread_t uevq_thr;
671555
 LIST_HEAD(uevq);
671555
-pthread_mutex_t uevq_lock, *uevq_lockp = &uevq_lock;
671555
-pthread_cond_t  uev_cond,  *uev_condp  = &uev_cond;
671555
+pthread_mutex_t uevq_lock = PTHREAD_MUTEX_INITIALIZER;
671555
+pthread_mutex_t *uevq_lockp = &uevq_lock;
671555
+pthread_cond_t uev_cond = PTHREAD_COND_INITIALIZER;
671555
+pthread_cond_t *uev_condp = &uev_cond;
671555
 uev_trigger *my_uev_trigger;
671555
 void * my_trigger_data;
671555
 int servicing_uev;
671555
@@ -409,10 +411,6 @@ int uevent_listen(void)
671555
 	 * thereby not getting to empty the socket's receive buffer queue
671555
 	 * often enough.
671555
 	 */
671555
-	INIT_LIST_HEAD(&uevq);
671555
-
671555
-	pthread_mutex_init(uevq_lockp, NULL);
671555
-	pthread_cond_init(uev_condp, NULL);
671555
 	pthread_cleanup_push(uevq_stop, NULL);
671555
 
671555
 	monitor = udev_monitor_new_from_netlink(conf->udev, "udev");
671555
@@ -525,8 +523,6 @@ out:
671555
 	if (need_failback)
671555
 		err = failback_listen();
671555
 	pthread_cleanup_pop(1);
671555
-	pthread_mutex_destroy(uevq_lockp);
671555
-	pthread_cond_destroy(uev_condp);
671555
 	return err;
671555
 }
671555