[dm-devel] [PATCH 09/11] multipathd: Correctly initialize udev context
Hannes Reinecke
hare at suse.de
Fri Dec 13 12:14:12 UTC 2013
The udev context is passed as argument to ueventloop(), so
we should be using that instead of the global variable.
Signed-off-by: Hannes Reinecke <hare at suse.de>
---
multipathd/main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/multipathd/main.c b/multipathd/main.c
index 1a1aa2d..7058147 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -836,6 +836,8 @@ out:
static void *
ueventloop (void * ap)
{
+ struct udev *udev = ap;
+
if (uevent_listen(udev))
condlog(0, "error starting uevent listener");
--
1.8.1.4
More information about the dm-devel
mailing list