From c5686ecfca87b9bfa1e06b5baffa1c0e2466c775 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Fri, 20 May 2011 14:33:23 +0000 Subject: [PATCH] Dont sample stats for pid=0 children This commit was SVN r24717. --- orte/mca/sensor/heartbeat/sensor_heartbeat.c | 4 ++++ 1 file changed, 4 insertions(+) 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);