mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pulse-server: map some more errno to errors
Mostly EADDRINUSE to ERR_BUSY, which happens when loading TCP when it's already loaded on the address.
This commit is contained in:
parent
9c42c06af0
commit
06214b6087
1 changed files with 2 additions and 2 deletions
|
|
@ -109,8 +109,8 @@ static inline int res_to_err(int res)
|
||||||
case -ENOTSUP: case -EPROTONOSUPPORT: case -ESOCKTNOSUPPORT: return ERR_NOTSUPPORTED;
|
case -ENOTSUP: case -EPROTONOSUPPORT: case -ESOCKTNOSUPPORT: return ERR_NOTSUPPORTED;
|
||||||
case -ENOSYS: return ERR_NOTIMPLEMENTED;
|
case -ENOSYS: return ERR_NOTIMPLEMENTED;
|
||||||
case -EIO: return ERR_IO;
|
case -EIO: return ERR_IO;
|
||||||
case -EBUSY: return ERR_BUSY;
|
case -EBUSY: case -EADDRINUSE: case -EAGAIN: return ERR_BUSY;
|
||||||
case -ENFILE: case -EMFILE: return ERR_INTERNAL;
|
case -ENFILE: case -EMFILE: -ENOMEM: return ERR_INTERNAL;
|
||||||
}
|
}
|
||||||
return ERR_UNKNOWN;
|
return ERR_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue