From 73d6ade2a76e7508061151e499b8bb685af42a2a Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Fri, 3 Jul 2009 00:17:17 -0300
Subject: [PATCH 13/25] preload/run: Complain if fiu_rc_fifo() fails

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 preload/run/run.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/preload/run/run.c b/preload/run/run.c
index 19ec8cc..8687b32 100644
--- a/preload/run/run.c
+++ b/preload/run/run.c
@@ -81,8 +81,11 @@ static void __attribute__((constructor)) fiu_run_init(void)
 	fiu_init(0);
 
 	fiu_fifo_env = getenv("FIU_CTRL_FIFO");
-	if (fiu_fifo_env != NULL && *fiu_fifo_env != '\0')
-		fiu_rc_fifo(fiu_fifo_env);
+	if (fiu_fifo_env != NULL && *fiu_fifo_env != '\0') {
+		if (fiu_rc_fifo(fiu_fifo_env) < 0) {
+			perror("fiu_run_preload: Error opening RC fifo");
+		}
+	}
 
 	fiu_enable_env = getenv("FIU_ENABLE");
 	if (fiu_enable_env == NULL)
-- 
1.6.2.2.646.gb214

