Ignore EPERM on sendmsg

Some Linux versions sometimes return this (undocumented) error,
presumably because of firewalling.  Better to ignore it.

Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
Erik Boasson 2019-06-26 11:15:30 +02:00 committed by eboasson
parent c0b0db3ae2
commit ecbee32422

View file

@ -466,6 +466,7 @@ send_error_to_retcode(int errnum)
{
switch (errnum) {
case EACCES:
case EPERM:
return DDS_RETCODE_NOT_ALLOWED;
case EAGAIN:
#if EAGAIN != EWOULDBLOCK