HN2new | past | comments | ask | show | jobs | submitlogin

>The big problem is; if you have a thread reading from a socket, how can you ever interrupt it if you wish to do so? EINTR on signals is really not so bad when you think of it from that angle.

Yeah, but what if the thread is not currently blocked and you want to interrupt it / stop the thread? Unfortunately, it doesn't queue the EINTR for the next blocking function if the thread was NOT blocked at the moment the signal was sent.



So what is the proper solution for this in POSIX?




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

Search: