diff options
author | Sebastien Estienne <sebastien.estienne@gmail.com> | 2005-11-13 18:26:38 +0000 |
---|---|---|
committer | Sebastien Estienne <sebastien.estienne@gmail.com> | 2005-11-13 18:26:38 +0000 |
commit | 64f4a0d0fde7358b0ab153dd798f0bad8c9227f8 (patch) | |
tree | d07e83241e4746ab043e1c7afd12538dc06229e0 /avahi-core/iface-pfroute.c | |
parent | 59d6820e1866dc65cfec7536f95906e186765016 (diff) |
* be more verbose when retrying sysctl when the routing table grew
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@958 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/iface-pfroute.c')
-rw-r--r-- | avahi-core/iface-pfroute.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/avahi-core/iface-pfroute.c b/avahi-core/iface-pfroute.c index c3a342d..6d7de60 100644 --- a/avahi-core/iface-pfroute.c +++ b/avahi-core/iface-pfroute.c @@ -322,14 +322,19 @@ void avahi_interface_monitor_sync(AvahiInterfaceMonitor *m) { mib[5] = 0; /* no flags */ if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0) { - avahi_log_warn("sysctl failed: %s", strerror(errno)); + avahi_log_error("sysctl failed: %s", strerror(errno)); + avahi_log_error("route-sysctl-estimate"); return; } if ((buf = avahi_malloc(needed)) == NULL) - return; + { + avahi_log_error("malloc failed in avahi_interface_monitor_sync"); + return; + } if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0) { avahi_log_warn("sysctl failed: %s", strerror(errno)); if (errno == ENOMEM && count++ < 10) { + avahi_log_warn("Routing table grew, retrying"); sleep(1); avahi_free(buf); goto retry2; |