multipathd: Fix uxlsnr race condition on shutdown
authorHannes Reinecke <hare@suse.de>
Wed, 12 Jan 2011 09:13:04 +0000 (10:13 +0100)
committerHannes Reinecke <hare@suse.de>
Tue, 17 May 2011 12:36:45 +0000 (14:36 +0200)
commitf89600eb85ef9dd0b507010510a24a6cec3a14f0
tree87d03df8089889919424b715910e195bc76335b3
parent5a947826b5f3cd4c0437ee6cacf7557cd6f5b410
multipathd: Fix uxlsnr race condition on shutdown

The multipath daemon deallocates some memory structures
upon shutdown which have been allocated in the thread
context of uxlsnr. Upon shutdown this thread is already
done for, taking it's memory structures with it.
So we need to establish a proper pthread cleanup
handler here to ensure the memory structures are
freed correctly.

Signed-off-by: Hannes Reinecke <hare@suse.de>
multipathd/cli.c
multipathd/cli.h
multipathd/main.c
multipathd/uxlsnr.c
multipathd/uxlsnr.h