diff mbox

[Fwd:,[PATCH] Latest git -master is not compilable]

Message ID 1265446918.4273.3.camel@zezette (mailing list archive)
State New, archived
Headers show

Commit Message

Christophe Varoqui Feb. 6, 2010, 9:01 a.m. UTC
None
diff mbox

Patch

From a6bf54d588c2d0c9d3a97541bcb7b605fd1f3ae0 Mon Sep 17 00:00:00 2001
From: Rumko <rumcic@gmail.com>
Date: Fri, 5 Feb 2010 20:59:21 +0100
Subject: [PATCH] Use pthread_mutex_lock() instead of lock() since we are dealing with a
 mutex directly.

---
 multipathd/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/multipathd/main.c b/multipathd/main.c
index e7955bd..3f7eb49 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -1440,7 +1440,7 @@  child (void * param)
 	pthread_create(&uxlsnr_thr, &misc_attr, uxlsnrloop, vecs);
 	pthread_attr_destroy(&misc_attr);
 
-	lock(&exit_mutex);
+	pthread_mutex_lock(&exit_mutex);
 	pthread_cond_wait(&exit_cond, &exit_mutex);
 
 	/*
-- 
1.6.6