Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
multipath-tools
> multipath-tools-crash-on-shutdown
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File multipath-tools-crash-on-shutdown of Package multipath-tools
From 60d9d61209ff2ab4b681c69bf15448822d124ea7 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke <hare@suse.de> Date: Thu, 8 Nov 2007 14:24:32 +0100 Subject: [PATCH] multipathd crash on shutdown On shutdown multipathd flushes its internal message queue; but we have to check if the messages on the queue are not empty. Signed-off-by: Hannes Reinecke <hare@suse.de> --- libmultipath/log_pthread.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libmultipath/log_pthread.c b/libmultipath/log_pthread.c index 5a82b6a..8976bfb 100644 --- a/libmultipath/log_pthread.c +++ b/libmultipath/log_pthread.c @@ -33,7 +33,8 @@ static void flush_logqueue (void) pthread_mutex_lock(logq_lock); empty = log_dequeue(la->buff); pthread_mutex_unlock(logq_lock); - log_syslog(la->buff); + if (!empty) + log_syslog(la->buff); } while (empty == 0); } -- 1.5.0.4.GIT