multipath-tools: Log all messages
authorBenjamin Marzinski <bmarzins@redhat.com>
Mon, 3 Aug 2009 22:00:03 +0000 (17:00 -0500)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Tue, 4 Aug 2009 21:34:12 +0000 (23:34 +0200)
commitb4530f7878cd6cc6a60b156373a3a863f9283e38
treea2894d55d9c3793f854a1b6179da297e3911f872
parentee310d71b514b0722f0ec136e3747224ac0596cf
multipath-tools: Log all messages

When the log thread pulls the last message off the buffer, it sets
la->empty.  However, then it returns la->empty, which means that the log is
empty, instead of 0, which means that it found a message.  This means that
multipathd is not logging the last message in the buffer when the log threa
runs. This patch changes the return code, so that multipathd logs all the
messages in the buffer.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
libmultipath/log.c