summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRumko <rumcic@gmail.com>2010-02-05 21:02:23 +0100
committerChristophe Varoqui <christophe.varoqui@free.fr>2010-02-06 09:57:29 +0100
commit15249ec71045f778eee651bc8cac10a19a8d3c4e (patch)
tree670f6b630f48d4e98ef05e8c32f9de911dca5aa7
parent88c75172cf56e78d87b56fe48627b2e1da4eff48 (diff)
downloadmultipath-tools-15249ec71045f778eee651bc8cac10a19a8d3c4e.tar.gz
multipath-tools-15249ec71045f778eee651bc8cac10a19a8d3c4e.tar.bz2
multipath-tools-15249ec71045f778eee651bc8cac10a19a8d3c4e.zip
Latest git -master is not compilable
--Boundary-01=_PlHbLmcCyk7NmgQ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi! In latest git -master on line 1443 of multipathd/main.c lock() is called on= =20 exit_mutex, but since exit_mutex is a pthread_mutex_t, pthread_mutex_lock()= =20 is needed. Attached is the one-liner patch, tested it on a gentoo machine and seems to= be=20 working. =2D-=20 Regards, Rumko 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.
-rw-r--r--multipathd/main.c2
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);
/*