From ddc05e05d7d459c5d30dca8e45f0ceb03155f967 Mon Sep 17 00:00:00 2001 From: Shiqing Fan Date: Wed, 16 Feb 2011 08:48:21 +0000 Subject: [PATCH] Avoid blocking select on Windows. This commit was SVN r24396. --- opal/mca/event/libevent207/libevent/event.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/opal/mca/event/libevent207/libevent/event.c b/opal/mca/event/libevent207/libevent/event.c index 1341732c6b..9e5138df80 100644 --- a/opal/mca/event/libevent207/libevent/event.c +++ b/opal/mca/event/libevent207/libevent/event.c @@ -2320,7 +2320,15 @@ timeout_next(struct event_base *base, struct timeval **tv_p) if (ev == NULL) { /* if no time-based events are active wait for I/O */ + + /**** OMPI CHANGE ****/ + /* set a timeval to avoid blocking select on Windows */ +#ifndef WIN32 *tv_p = NULL; +#else + struct timeval now = {1, 0}; + **tv_p = now; +#endif goto out; }