[avahi] [PATCH] Support for monotonic clock

Marc Bodmer mb0dm3r at gmail.com
Wed Mar 11 15:02:13 PDT 2015

Hi, on our 32bit Linux embedded systems Avahi stopped publishing
services when time was stepped backwards.

This was due to Avahi using gettimeofday() to measure elapsed time. This
function takes it's values from CLOCK_REALTIME. However to measure
elapsed time CLOCK_MONOTONIC should be used instead to prevent
unpredictable behaviour. My attached patch here fixes this.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: avahi_clock_monotonic.patch
Type: text/x-patch
Size: 10806 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/avahi/attachments/20150311/aa3b6432/attachment.bin>

More information about the avahi mailing list