]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Use -errno or WSAGetLastError() as return value from rxi_Sendmsg()
authorAdam Megacz <megacz@hcoop.net>
Sun, 19 Jul 2009 18:00:41 +0000 (11:00 -0700)
committerDerrick Brashear <shadow|account-1000005@unknown>
Thu, 17 Dec 2009 06:38:29 +0000 (22:38 -0800)
commit5b1c5e3d720063b95b5d57fb02261ff9a2ff9673
treeab66128daba8ddc7efaa27796777dc15ceacdac5
parent16efd65f36c162acfcf8ce18857a244542e5f83b
Use -errno or WSAGetLastError() as return value from rxi_Sendmsg()

This patch causes the pthread and lwp implementations of rxi_Sendmsg()
to use -errno or WSAGetLastError() as the return value if it is
positive.  This is required in order to communicate more meaningful
error conditions to rxi_SendPacket[List], which should "down" a host
immediately when it observes ENETUNREACH.

Jeff Altman <jaltman@openafs.org> supplied the logic for the
AFS_NT40_ENV case; I was not able to test this (I do not own a
Windows license) and took him on his word.

Reviewed-on: http://gerrit.openafs.org/58
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Adam Megacz <megacz@gmail.com>
Tested-by: Adam Megacz <megacz@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 119c756d96c4a7f9e01e4ff6bb20156f1abf761b)
Change-Id: I31f97e4cef4b32abb69c783d19b1adfd897889fa
Reviewed-on: http://gerrit.openafs.org/943
src/rx/rx_lwp.c
src/rx/rx_pthread.c