[PATCH] D46517: [sanitizer] Don't miss threads by ThreadSuspender

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 8 02:15:48 PDT 2018


vitalybuka added a comment.

Looks like I can assume that kernel stops enumerating on the first !pid_alive()
So I can assume that if the last thread in the returned list is !pid_alive() I need one more iteration.
I have no access to pid_alive() but according kernel source PPid of such thread is going to be set to 0.

Seems this reliably works. I will update the patch.


Repository:
  rL LLVM

https://reviews.llvm.org/D46517





More information about the llvm-commits mailing list