1
1

Replace a "sleep(1)" with a yield so that the orted can reap processes

much faster.

This commit was SVN r12575.
Этот коммит содержится в:
Jeff Squyres 2006-11-13 12:45:03 +00:00
родитель a82dfac73d
Коммит bfdf801487

Просмотреть файл

@ -219,8 +219,11 @@ static bool odls_default_child_died(pid_t pid, unsigned int timeout, int *exit_s
return true;
}
/* Sleep for a second */
sleep(1);
#if defined(__WINDOWS__)
SwitchToThread();
#elif defined(HAVE_SCHED_YIELD)
sched_yield();
#endif
} while (time(NULL) < end);
/* The child didn't die, so return false */