aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2015-08-03 18:23:42 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2015-08-03 18:23:42 +0000
commitca81dee3922cf1cfd64abb75db737aa8b7b3caa8 (patch)
tree217bdda7b9a43a3b92b3abcc8ca2c7ac3dc08c17 /gcc
parent3d6d2a63b2457450d93cfaa9787a27359264b2c3 (diff)
downloadgcc-ca81dee3922cf1cfd64abb75db737aa8b7b3caa8.zip
gcc-ca81dee3922cf1cfd64abb75db737aa8b7b3caa8.tar.gz
gcc-ca81dee3922cf1cfd64abb75db737aa8b7b3caa8.tar.bz2
libgo/testsuite: kill sleep process in gotest
This change modifies the "gotest" shell script to kill all processes, including "sleep", spawned by the timeout subshell. This prevents the sleep process from living beyond the gotest process. BACKGROUND The "gotest" shell script spawns "sleep" processes in the background to kill off test cases that run past their specified timeout. There are commands included that appear to kill the sleep process, but they only kill the parent shell, causing the sleep process to reparent. The orphaned sleep process can cause issues when gotest is run under some build systems, such as Ninja [0]. The particular issue with Ninja is the method it uses to identify terminated processes: it creates a pipe, passes the write end to the child process, and waits for EOF. In the case of libgo/gotest, the orphaned sleep process inherits the pipe FD and keeps it open for 4 minutes by default. [0] https://github.com/martine/ninja Reviewed-on: https://go-review.googlesource.com/12227 From-SVN: r226526
Diffstat (limited to 'gcc')
-rw-r--r--gcc/go/gofrontend/MERGE2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index 2632f4e..5490d9f 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -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.