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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sleep for a second */
|
#if defined(__WINDOWS__)
|
||||||
sleep(1);
|
SwitchToThread();
|
||||||
|
#elif defined(HAVE_SCHED_YIELD)
|
||||||
|
sched_yield();
|
||||||
|
#endif
|
||||||
} while (time(NULL) < end);
|
} while (time(NULL) < end);
|
||||||
|
|
||||||
/* The child didn't die, so return false */
|
/* The child didn't die, so return false */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user