diff --git a/src/libCom/osi/os/default/osdSock.c b/src/libCom/osi/os/default/osdSock.c index 6e1789bf5..e0cd3ae52 100644 --- a/src/libCom/osi/os/default/osdSock.c +++ b/src/libCom/osi/os/default/osdSock.c @@ -129,28 +129,4 @@ epicsShareFunc int epicsShareAPI hostToIPAddr return ret; } -/* - * typically the shutdown() function will wake up threads blocking in TCP recv() - * and this is a more graceful way to shutdown - */ -epicsShareFunc enum osiSockShutdownReturn epicsShareAPI osiSocketShutdown ( SOCKET sock ) -{ - int status; - status = shutdown ( sock, SD_BOTH ); - if ( status ) { - errlogPrintf ( "TCP socket shutdown error (for shutdown purposes) was %s\n", - SOCKERRSTR (SOCKERRNO) ); - status = socket_close ( sock ); - if ( status ) { - errlogPrintf ("TCP socket close error (for shutdown purposes) was %s\n", - SOCKERRSTR (SOCKERRNO) ); - return ossrSocketNoChange; - } - else { - return ossrSocketClosed; - } - } - else { - return ossrSocketShutdown; - } -} + diff --git a/src/libCom/osi/os/vxWorks/osdSock.c b/src/libCom/osi/os/vxWorks/osdSock.c index 93ba48f2c..3af0d3de8 100644 --- a/src/libCom/osi/os/vxWorks/osdSock.c +++ b/src/libCom/osi/os/vxWorks/osdSock.c @@ -87,29 +87,3 @@ epicsShareFunc int epicsShareAPI hostToIPAddr return 0; } -/* - * typically the shutdown() function will wake up threads blocking in TCP recv() - * and this is a more graceful way to shutdown - */ -epicsShareFunc enum osiSockShutdownReturn epicsShareAPI osiSocketShutdown ( SOCKET sock ) -{ - int status; - - status = shutdown ( sock, SD_BOTH ); - if ( status ) { - errlogPrintf ( "TCP socket shutdown error (for shutdown purposes) was %s\n", - SOCKERRSTR (SOCKERRNO) ); - status = socket_close ( sock ); - if ( status ) { - errlogPrintf ("TCP socket close error (for shutdown purposes) was %s\n", - SOCKERRSTR (SOCKERRNO) ); - return ossrSocketNoChange; - } - else { - return ossrSocketClosed; - } - } - else { - return ossrSocketShutdown; - } -}