device-mapper-multipath/0097-RHBZ-697386-fix-shutdown-crash.patch

18 lines
520 B
Diff
Raw Normal View History

---
multipathd/main.c | 2 ++
1 file changed, 2 insertions(+)
Index: multipath-tools/multipathd/main.c
===================================================================
--- multipath-tools.orig/multipathd/main.c
+++ multipath-tools/multipathd/main.c
@@ -1155,6 +1155,8 @@ checkerloop (void *ap)
block_signal(SIGHUP, &old);
pthread_cleanup_push(cleanup_lock, &vecs->lock);
lock(vecs->lock);
+ /* check to see if we are exiting */
+ pthread_testcancel();
condlog(4, "tick");
if (vecs->pathvec) {