Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm just going to leave this right here: http://man7.org/linux/man-pages/man2/signalfd.2.html


I know about signalfd, how would it help dealing with mmap?

> The signalfd mechanism can't be used to receive signals that are synchronously generated, such as the SIGSEGV


So a common way to handle synchronous signals is via a mechanism much like signalfd, where your signal handler just appends to a pipe that can be read at a convenient time.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: