]> Cypherpunks repositories - gostls13.git/commit
misc/android: forward SIGQUIT to the process running on the device
authorElias Naur <elias.naur@gmail.com>
Wed, 23 May 2018 14:31:36 +0000 (16:31 +0200)
committerElias Naur <elias.naur@gmail.com>
Wed, 23 May 2018 18:18:39 +0000 (18:18 +0000)
commit7ba1c91dd999681425c2e1053b854f218ea3f2f8
tree9c92499b7227eabadcfa32139a680c3df19a3240
parent77c51c6c627e1f4f99305d0ffdf88daa18f43391
misc/android: forward SIGQUIT to the process running on the device

When a test binary runs for too long, the go command sends it a
SIGQUIT to force a backtrace dump. On Android, the exec wrapper
will instead receive the signal and dump its backtrace.

Forward SIGQUIT signals from the wrapper to the wrapped process
to gain useful backtraces.

Inspired by issuse 25519; this CL would have revealed the hanging
test directly in the builder log.

Change-Id: Ic362d06940d261374343a1dc09366ef54edaa631
Reviewed-on: https://go-review.googlesource.com/114137
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/android/go_android_exec.go