News for hackers. Stuff that matters.
Re:Use mmap with care by gmueckl on Thursday May 02, 2019 @07:39AM (#19806788)
Signal handling in POSIX breaks multithreading in practice because it is so crazy hard to get right (I would be surprised if more than 50% of the code out there does it right).

Can you link to the libc maintainer responses? I would like to know how they countered you exactly.

Re:Use mmap with care by quotemstr on Thursday May 02, 2019 @02:56PM (#19811313)
> Signal handling in POSIX breaks multithreading in practice because it is so crazy hard to get right

In my experience, it's pretty easy to write async-signal-safe code --- which is almost always also thread-safe --- if you follow a few simple rules. I don't understand why people have so much difficulty writing correct signal handlers.