From 84666e054e44812f96a2b89cf09101c2fcbf34ba Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 16 Jul 2003 18:03:02 +0000 Subject: [PATCH] fixed include --- src/libCom/osi/os/posix/osdSock.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/libCom/osi/os/posix/osdSock.c b/src/libCom/osi/os/posix/osdSock.c index 4ccacd9b8..e14919b26 100644 --- a/src/libCom/osi/os/posix/osdSock.c +++ b/src/libCom/osi/os/posix/osdSock.c @@ -20,6 +20,7 @@ #include #include #include +#include #define epicsExportSharedSymbols #include "epicsThread.h" @@ -64,6 +65,11 @@ void osiSockRelease() { } +/* + * this version sets the file control flags so that + * the socket will be closed if the user uses exec() + * as is the case with third party tools such as TCL/TK + */ epicsShareFunc SOCKET epicsShareAPI epicsSocketCreate ( int domain, int type, int protocol ) { @@ -79,7 +85,7 @@ epicsShareFunc SOCKET epicsShareAPI epicsSocketCreate ( errlogPrintf ( "epicsSocketCreate: failed to " "fcntl FD_CLOEXEC because \"%s\"\n", - buf ): + buf ); close ( sock ); sock = INVALID_SOCKET; }