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

I was under impression that signals are delivered to a process only when process is executing a syscall. Given the fact that memset or memmove are note executing any syscalls they will not be interrupted by a signal handler. Am i wrong?


Async signal safety refers to the functions being called in the handler, not the interrupted code. Also signals can interrupt the code just as normal thread preemption would, not only while the thread is inside a system call.




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

Search: