X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fnetlink.c;h=acea6968a88592e1b7f34ad069252ba341998280;hb=9c0f9c65093cfa53d45f9b68782321eb8063a032;hp=4ded5ec7de371f34c642fc8af8f00febf9c4c1c7;hpb=908e491f7d55209acfbb2595ab1ef5b24502d641;p=catta diff --git a/avahi-core/netlink.c b/avahi-core/netlink.c index 4ded5ec..acea696 100644 --- a/avahi-core/netlink.c +++ b/avahi-core/netlink.c @@ -128,7 +128,7 @@ AvahiNetlink *avahi_netlink_new(const AvahiPoll *poll_api, uint32_t groups, void memset(&addr, 0, sizeof(addr)); addr.nl_family = AF_NETLINK; addr.nl_groups = groups; - addr.nl_pid = getpid(); + addr.nl_pid = 0; // use 0 instead of getpid() to allow multiple instances of avahi in one process if (bind(fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) { avahi_log_error(__FILE__": bind(): %s", strerror(errno));