From 963c4ef692abb93488453981273a59145354bf5d Mon Sep 17 00:00:00 2001 From: Tim Woodall Date: Mon, 12 Jul 2004 22:28:47 +0000 Subject: [PATCH] return from event loop if lib not initializedd This commit was SVN r1646. --- src/event/event.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/event/event.c b/src/event/event.c index e5178a8311..a705f78c62 100644 --- a/src/event/event.c +++ b/src/event/event.c @@ -319,6 +319,9 @@ ompi_event_loop(int flags) struct timeval tv; int res, done; + if (ompi_event_inited == false) + return(-1); + if(ompi_using_threads()) { OMPI_THREAD_LOCK(&ompi_event_lock); }