diff --git a/orte/mca/sensor/heartbeat/sensor_heartbeat.c b/orte/mca/sensor/heartbeat/sensor_heartbeat.c index b2503b0ed3..c8182d22ed 100644 --- a/orte/mca/sensor/heartbeat/sensor_heartbeat.c +++ b/orte/mca/sensor/heartbeat/sensor_heartbeat.c @@ -406,6 +406,10 @@ static void send_heartbeat(int fd, short event, void *arg) if (!child->alive) { continue; } + if (0 == child->pid) { + /* race condition */ + continue; + } OBJ_CONSTRUCT(&stats, opal_pstats_t); if (ORTE_SUCCESS != (rc = opal_pstat.query(child->pid, &stats, NULL))) { ORTE_ERROR_LOG(rc);