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.
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.