From 64db7fcc140b0b9128be4627b4a8354cc4b3f5f5 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Tue, 24 Apr 2007 13:29:02 +0000 Subject: [PATCH] Fix the regression introduced by dmeventd leak fixes. --- dmeventd/dmeventd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dmeventd/dmeventd.c b/dmeventd/dmeventd.c index fab7dd5..324ee54 100644 --- a/dmeventd/dmeventd.c +++ b/dmeventd/dmeventd.c @@ -623,6 +623,8 @@ static int _event_wait(struct thread_status *thread, struct dm_task **task) } else if (thread->events & DM_EVENT_TIMEOUT && errno == EINTR) { thread->current_events |= DM_EVENT_TIMEOUT; ret = DM_WAIT_INTR; + } else if (thread->status == DM_THREAD_SHUTDOWN && errno == EINTR) { + ret = DM_WAIT_FATAL; } else { syslog(LOG_NOTICE, "dm_task_run failed, errno = %d, %s", errno, strerror(errno)); -- 2.43.5