A friend is doing a basic program where you have a pthread that does
while (recv(...)) {...}
```is there any mechanism for interrupting that recv from another thread (apparently you can signal threads and make recv return EINTR that way, maybe that's a solution - seems like a race though)
My initial idea is to `poll` on that socket and a `pipe`, and then write to the pipe from a separate thread to indicate an exit, but using a pipe as a condition variable seems wrong, but you can't poll a condition variable.