mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-22 05:33:53 -04:00
module-protocol-native: Fix socket activation
Fix path comparison in is_socket_unix() and don't unset LISTEN_FDS since the function that uses it is called more than once and it was not unset when sd_listen_fds() was used. Fixes #5140
This commit is contained in:
parent
d206b06c70
commit
f4e174870e
3 changed files with 7 additions and 11 deletions
|
|
@ -907,7 +907,7 @@ static int add_socket(struct pw_protocol *protocol, struct server *s, struct soc
|
|||
bool activated = false;
|
||||
|
||||
{
|
||||
int i, n = listen_fd();
|
||||
int i, n = listen_fds();
|
||||
for (i = 0; i < n; ++i) {
|
||||
if (is_socket_unix(LISTEN_FDS_START + i, SOCK_STREAM,
|
||||
s->addr.sun_path) > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue