Skip to content

Commit

Permalink
cmd/go: add comment about SIGUSR2 on iOS
Browse files Browse the repository at this point in the history
Missing from CL 34926.

Change-Id: I4a046440c30811f26da53bee0e853dae3b0ac57a
Reviewed-on: https://go-review.googlesource.com/35123
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
crawshaw committed Jan 12, 2017
1 parent 333f764 commit 4f0aac5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cmd/go/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4f0aac5

Please sign in to comment.