[test-suite] tools/timeit: Use setpgid() instead of the deprecated setpgrp().

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@153042 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2012-03-19 17:15:54 +00:00
Родитель 26bd34b55d
Коммит 23c535cb54
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -244,7 +244,7 @@ static int execute_target_process(char * const argv[]) {
* do this, because later on we might want to kill pid _and_ all processes
* spawned by it and its descendants.
*/
setpgrp();
setpgid(0, 0);
/* Redirect the standard input, if requested. */
if (g_target_redirect_input) {