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:
parent
c0b0db3ae2
commit
ecbee32422
1 changed files with 1 additions and 0 deletions
|
@ -466,6 +466,7 @@ send_error_to_retcode(int errnum)
|
||||||
{
|
{
|
||||||
switch (errnum) {
|
switch (errnum) {
|
||||||
case EACCES:
|
case EACCES:
|
||||||
|
case EPERM:
|
||||||
return DDS_RETCODE_NOT_ALLOWED;
|
return DDS_RETCODE_NOT_ALLOWED;
|
||||||
case EAGAIN:
|
case EAGAIN:
|
||||||
#if EAGAIN != EWOULDBLOCK
|
#if EAGAIN != EWOULDBLOCK
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue