From 2f91a4833b0cfeca68945c2fffed35fc8515fcc4 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Thu, 15 Oct 2009 02:35:53 +0000 Subject: [PATCH] Have the trigger event return the event itself in the callback function so it can be reset, if desired This commit was SVN r22101. --- orte/runtime/orte_wait.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orte/runtime/orte_wait.c b/orte/runtime/orte_wait.c index fc4c52d592..9817ca2968 100644 --- a/orte/runtime/orte_wait.c +++ b/orte/runtime/orte_wait.c @@ -518,7 +518,7 @@ int orte_wait_event(opal_event_t **event, orte_trigger_event_t *trig, trig->channel = p[1]; /* define the event to fire when someone writes to the pipe */ - opal_event_set(*event, p[0], OPAL_EV_READ, cbfunc, NULL); + opal_event_set(*event, p[0], OPAL_EV_READ, cbfunc, trig); /* Add it to the active events, without a timeout */ opal_event_add(*event, NULL);