This patch from Andrew Wilkins kills off extra sleep processes when
running the libgo testsuite.  Otherwise, the sleep process would
continue after the test completes.  This doesn't affect the testsuite
but the extra sleep processes are not desirable.  Committed to
mainline.

Ian
Index: gcc/go/gofrontend/MERGE
===================================================================
--- gcc/go/gofrontend/MERGE     (revision 226525)
+++ gcc/go/gofrontend/MERGE     (working copy)
@@ -1,4 +1,4 @@
-d5aad2f400a0f21724e33e4ae48e1583ed8b1a87
+33d59eff1bd5de29f1fbde3b7625db28595835fd
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
Index: libgo/testsuite/gotest
===================================================================
--- libgo/testsuite/gotest      (revision 226510)
+++ libgo/testsuite/gotest      (working copy)
@@ -518,7 +518,7 @@ xno)
                wait $pid
                status=$?
                if ! test -f gotest-timeout; then
-                   kill $alarmpid
+                   ps -o pid,ppid | grep " $alarmpid" | cut -f1 -d" " | xargs 
kill -9
                fi
        else
                if test "$trace" = "true"; then

Reply via email to