diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2010-01-13 00:32:42 +0000 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-03 01:53:43 +0100 |
commit | 997f7268f2940e56ed47e353c6872ca53be6efad (patch) | |
tree | b287e470529d87b57837a4799ad66899aef3e774 /pimd/pim_cmd.h | |
parent | b32d20cfdabab1ae8deec25b608fb23056b38f8d (diff) | |
download | quagga-997f7268f2940e56ed47e353c6872ca53be6efad.tar.bz2 quagga-997f7268f2940e56ed47e353c6872ca53be6efad.tar.xz |
BGP: leave peer socket in non-blocking mode (mostly)
Rather than toggling socket in/out of non-block mode,
just leave it in nonblocking mode.
Also, only handle non-blocking and errno's correctly.
On write errno is only set if return is less than zero;
otherwise errno is from last failed system call.
On read errno is only set if return is less than zero.
Use convient ERRNO_IO_RETRY() macro to check for AGAIN/INTR etc.
One exception is in bgp_notify which only happens just
before close.
Diffstat (limited to 'pimd/pim_cmd.h')
0 files changed, 0 insertions, 0 deletions