aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crawshaw <crawshaw@golang.org>2017-01-12 10:49:35 -0500
committerDavid Crawshaw <crawshaw@golang.org>2017-01-12 16:47:42 +0000
commit4f0aac52d926270255fa2b682aca15e8ff404c59 (patch)
tree2ce0b2795bcae8cbf8f5647f3cabcb489ddf06fa
parent333f764df3d78930a5a3097fc34ac1374b7c3187 (diff)
downloadgo-4f0aac52d926270255fa2b682aca15e8ff404c59.tar.gz
go-4f0aac52d926270255fa2b682aca15e8ff404c59.zip
cmd/go: add comment about SIGUSR2 on iOS
Missing from CL 34926. Change-Id: I4a046440c30811f26da53bee0e853dae3b0ac57a Reviewed-on: https://go-review.googlesource.com/35123 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r--src/cmd/go/test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/go/test.go b/src/cmd/go/test.go
index 1ff02a68e1..f477a4a253 100644
--- a/src/cmd/go/test.go
+++ b/src/cmd/go/test.go
@@ -1531,6 +1531,10 @@ func coverRegisterFile(fileName string, counter []uint32, pos []uint32, numStmts
func main() {
{{if .IsIOS}}
+ // Send a SIGUSR2, which will be intercepted by LLDB to
+ // tell the test harness that installation was successful,
+ // and to give the exec script a chance set the current
+ // working directory. See misc/ios/go_darwin_arm_exec.go.
signal.Notify(make(chan os.Signal), syscall.SIGUSR2)
syscall.Kill(0, syscall.SIGUSR2)
signal.Reset(syscall.SIGUSR2)