diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-26 22:37:08 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-22 02:26:10 +0100 |
commit | 5f8fec87289fbac9e0b1ece4c088bd7f305f8be9 (patch) | |
tree | 048eb7eea9ab5902e27945ab3d7202705ba2c8c8 /pimd | |
parent | zebra: Fix up the debug for receiving multicast routes (diff) | |
download | frr-5f8fec87289fbac9e0b1ece4c088bd7f305f8be9.tar.xz frr-5f8fec87289fbac9e0b1ece4c088bd7f305f8be9.zip |
lib, pimd: Modify writen to retry on certain failures
When writen fails, allow itto retry on certain failures
until it succeeds.
Ticket: CM-12986
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd')
-rw-r--r-- | pimd/pim_zlookup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pimd/pim_zlookup.c b/pimd/pim_zlookup.c index bee9c63e9..01e8ee0e5 100644 --- a/pimd/pim_zlookup.c +++ b/pimd/pim_zlookup.c @@ -307,8 +307,8 @@ zclient_lookup_nexthop_once (struct pim_zlookup_nexthop nexthop_tab[], ret = writen(zlookup->sock, s->data, stream_get_endp(s)); if (ret < 0) { - zlog_err("%s %s: writen() failure writing to zclient lookup socket", - __FILE__, __PRETTY_FUNCTION__); + zlog_err("%s %s: writen() failure: %d writing to zclient lookup socket", + __FILE__, __PRETTY_FUNCTION__, errno); zclient_lookup_failed(zlookup); return -2; } @@ -461,8 +461,8 @@ pim_zlookup_sg_statistics (struct channel_oil *c_oil) ret = writen (zlookup->sock, s->data, count); if (ret <= 0) { - zlog_err("%s %s: writen() failure writing to zclient lookup socket", - __FILE__, __PRETTY_FUNCTION__); + zlog_err("%s %s: writen() failure: %d writing to zclient lookup socket", + __FILE__, __PRETTY_FUNCTION__, errno); return -1; } |