I am using recvmmsg
to read from a blocking UDP socket out of a mutlicast group.
In the man pages of that API I noted that the errors messages don't mention EINTR so it looks like that api cannot catch when a signal has been received.
I tested and I can see that if I issue a CTRL-C when recvmmsg
is blocked waiting on some data to read nothing happens and it remains blocked.
Do you know why this is happening and how to catch the signal correctly?
I am using Linux CentOs 7 and Oracle Linux