Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: use tgkill instead of tkill to keep Android happy #24924
Go uses tkill in the panic routine. From the tkill man page:
Android sets a seccomp filter that disallows tkill but allows tgkill. Therefore the solution is to switch Go to using tgkill. According to the man page, there are other good reasons for switching to tgkill too.
This is similar to #23750 but is yet-another mole.
I have no objection to tgkill if it's better, but I do see tkill listed in the seccomp list from 23750:
Do you have a small test case that breaks Android O?