From 65cfc5d16d782df621fc161e876bc949b9ff28b2 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 12 Mar 2012 14:46:53 +0000 Subject: [PATCH] We need longer window for checking read from fifo. Seems like some dmeventd startups are taking more time then expected, so make the time window longer here. --- WHATS_NEW_DM | 1 + daemons/dmeventd/libdevmapper-event.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index f21d80628..a41876b2c 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.75 - ================================ + Make the time window for reading fifo longer 5sec (1.02.73). Version 1.02.74 - 6th March 2012 ================================ diff --git a/daemons/dmeventd/libdevmapper-event.c b/daemons/dmeventd/libdevmapper-event.c index ca0a6408d..63c48dc8d 100644 --- a/daemons/dmeventd/libdevmapper-event.c +++ b/daemons/dmeventd/libdevmapper-event.c @@ -245,7 +245,7 @@ static int _daemon_read(struct dm_event_fifos *fifos, log_error("Unable to read from event server"); return 0; } - if ((ret == 0) && i && !bytes) { + if ((ret == 0) && (i > 4) && !bytes) { log_error("No input from event server."); return 0; }