From: Petr Rockai Date: Tue, 24 Apr 2007 13:29:02 +0000 (+0000) Subject: Fix the regression introduced by dmeventd leak fixes. X-Git-Tag: v1_02_19~8 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=64db7fcc140b0b9128be4627b4a8354cc4b3f5f5;p=dm.git Fix the regression introduced by dmeventd leak fixes. --- 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));