Replace a "sleep(1)" with a yield so that the orted can reap processes
much faster. This commit was SVN r12575.
Этот коммит содержится в:
родитель
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 */
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user