Dont sample stats for pid=0 children
This commit was SVN r24717.
Этот коммит содержится в:
родитель
b03e4481a3
Коммит
c5686ecfca
@ -406,6 +406,10 @@ static void send_heartbeat(int fd, short event, void *arg)
|
|||||||
if (!child->alive) {
|
if (!child->alive) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (0 == child->pid) {
|
||||||
|
/* race condition */
|
||||||
|
continue;
|
||||||
|
}
|
||||||
OBJ_CONSTRUCT(&stats, opal_pstats_t);
|
OBJ_CONSTRUCT(&stats, opal_pstats_t);
|
||||||
if (ORTE_SUCCESS != (rc = opal_pstat.query(child->pid, &stats, NULL))) {
|
if (ORTE_SUCCESS != (rc = opal_pstat.query(child->pid, &stats, NULL))) {
|
||||||
ORTE_ERROR_LOG(rc);
|
ORTE_ERROR_LOG(rc);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user