[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:40:54 PDT 2020


MaskRay added inline comments.


================
Comment at: libc/src/stdlib/abort.cpp:34
+  // interrupted by any async signals. The user handler will be run once we
+  // unblock if it was blocked previously.
+  sigset_t set;
----------------
Another thread may concurrently install a signal handler for SIGABRT or unblock SIGABRT. There needs to be a lock.


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

https://reviews.llvm.org/D76676





More information about the libc-commits mailing list