Race between avahi-daemon startup by dbus and .local check in if-up.d
Bug #111834 reported by
J. Scott Berg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
avahi (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: avahi-daemon
I am blessed with a unicast .local domain. This should prevent avahi-daemon from running.
The problem is that (probably since I have a static IP address), /etc/network/
To post a comment you must log in.
I'm attaching a patch which skips the early test for whether the daemon is running, and creates the DISABLE_TAG before trying to stop the daemon.
Note that there is still a race here: it is possible that avahi-daemon had actually begun to start before DISABLE_TAG was created, but has not reached the point where avahi-daemon -c has indicated that it has actually started. I took the lazy man's approach of putting a 2 second sleep after creating DISABLE_TAG. If avahi-daemon's own locking mechanism is sufficiently robust, this should not be an issue.