summaryrefslogtreecommitdiffstats
path: root/lib/memtypes.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2010-01-13 00:32:42 +0000
committerDavid Lamparter <equinox@diac24.net>2010-02-03 01:53:43 +0100
commit997f7268f2940e56ed47e353c6872ca53be6efad (patch)
treeb287e470529d87b57837a4799ad66899aef3e774 /lib/memtypes.c
parentb32d20cfdabab1ae8deec25b608fb23056b38f8d (diff)
downloadquagga-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 'lib/memtypes.c')
0 files changed, 0 insertions, 0 deletions