[libc-commits] [PATCH] D76676: [libc] Unblock SIGABRT before raising in abort

Fangrui Song via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Apr 3 09:09:28 PDT 2020


MaskRay requested changes to this revision.
MaskRay added inline comments.
This revision now requires changes to proceed.


================
Comment at: libc/src/stdlib/abort.cpp:26
+  // it does not infinitely call itself.
+  static bool called;
+  if (!called) {
----------------
The function-local variable is not needed. If the signal handler of SIGABRT is set to abort, the following blocking logic should work.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76676/new/

https://reviews.llvm.org/D76676





More information about the libc-commits mailing list