[llvm-commits] [test-suite] r153042 - /test-suite/trunk/tools/timeit.c

Daniel Dunbar daniel at zuster.org
Mon Mar 19 10:15:55 PDT 2012


Author: ddunbar
Date: Mon Mar 19 12:15:54 2012
New Revision: 153042

URL: http://llvm.org/viewvc/llvm-project?rev=153042&view=rev
Log:
[test-suite] tools/timeit: Use setpgid() instead of the deprecated setpgrp().

Modified:
    test-suite/trunk/tools/timeit.c

Modified: test-suite/trunk/tools/timeit.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/tools/timeit.c?rev=153042&r1=153041&r2=153042&view=diff
==============================================================================
--- test-suite/trunk/tools/timeit.c (original)
+++ test-suite/trunk/tools/timeit.c Mon Mar 19 12:15:54 2012
@@ -244,7 +244,7 @@
    * 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) {





More information about the llvm-commits mailing list